[DFDL-WG] is this legal

Mike Beckerle mbeckerle.dfdl at gmail.com
Thu Feb 28 19:43:01 EST 2013


I can't find clarity on this:

<sequence>
   <element name="foo" type="int" dfdl:lengthKind="explicit"
dfdl:length="1"/>
    <element name="bar" type="int" dfdl:lengthKind="explicit"
dfdl:length="1"/>
   <element name="foo" type="int" dfdl:lengthKind="explicit"
dfdl:length="1"/>
   <element name="bar" type="int" dfdl:lengthKind="explicit"
dfdl:length="1"/>
</sequence>

Is this allowed?

If so, then the XPaths for accessing the 2nd foo would be foo[2], and the
path "foo" would be ambiguous or
could be treated as identifying an array. In which case one could do an
expression dfdl:occursCount("foo") and get back 2 ??

Or am I completely missing the boat here?

-- 
Mike Beckerle | OGF DFDL Workgroup Co-Chair | Tresys Technology |
www.tresys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ogf.org/pipermail/dfdl-wg/attachments/20130228/e57698ad/attachment.html>


More information about the dfdl-wg mailing list