Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.0
-
None
Description
I have a schema that uses this group. It's a way of doing an optional element
using a choice-by-dispatch.
Running this causes an abort when a NadaParser survives the optimizer and makes it into the parser definition.
<xs:group name="wordPadding"> <xs:choice dfdl:choiceDispatchKey="{ if ($tns:l16WordPaddingBits eq 0) then '0' else '1' }" > <xs:sequence dfdl:choiceBranchKey="0"/> <xs:element dfdl:choiceBranchKey="1" name="spare" type="vmfgi:padding" dfdl:length="{ $tns:l16WordPaddingBits }" /> </xs:choice> </xs:group>