Hi Folks,
Recall that when using dfdl:lengthPattern you must specify its regex
alternatives longest-to-shortest. For example, if you specify this:
dfdl:lengthPattern="abc|abcd"
then you will get a "left over data" error message.
So you must sort the alternatives in longest-to-shortest order. That is a
hassle.
The "-V limited" option changes things. It enables me to abandon
dfdl:lengthPattern and instead use the XSD pattern facet:
<simpleType>
<restriction base="string">
<pattern value="abc|abcd"/>
</restriction>
</simpleType>
Question: Do I need to sort the pattern facet alternatives in
longest-to-shortest order? I am hoping the answer is "no".
/Roger