[DFDL-WG] Empty element with initiator and terminator
Garriss Jr., James P.
jgarriss at mitre.org
Fri Mar 1 15:01:17 EST 2013
I have an element that can be one of two things, either:
< string >
Or
<>
So I modeled this as a choice. For the first choice, I made it a string with < and > being the initiator and terminator. Works great.
For the second choice, I also made it a string with < and > being the initiator and terminator, and I set the length kind to explicit and the length to 0. That seems obvious enough. But, alas, that causes errors in parsing. Nothing I do for this seemingly simple construct works. There must be some design pattern here that I am missing.
Ideas?
TIA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ogf.org/pipermail/dfdl-wg/attachments/20130301/11efcaf0/attachment.html>
More information about the dfdl-wg
mailing list