[DFDL-WG] Optional Initiator and Terminator?

Garriss Jr., James P. jgarriss at mitre.org
Fri Mar 8 14:41:32 EST 2013


Is there a way to specify that an initiator/terminator pair is optional?

IOW, these are both valid:

  { data }
  data

If not, which of these workarounds is better (and why)?

Choice
    DataWithInitiatorAndTeminator
   DataWithoutInitiatorAndTeminator

Or

Sequence
  OptionalInitiator (0 to 1)
  Data
  OptionalTerminator (0 to 1)

These seem the same to me, but maybe there's a reason why one is better.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ogf.org/pipermail/dfdl-wg/attachments/20130308/1cbe6554/attachment.html>


More information about the dfdl-wg mailing list