Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2306

Abort: NadaParsers are all supposed to optimize out!

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.6.0
    • Middle "End"
    • 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>

      Attachments

        Activity

          People

            slawrence Steve Lawrence
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: