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

hiddenGroupRef in group is dropped during unparse

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.6.0
    • Front End
    • None

    Description

      HiddenGroupRef's in a group without a sequence tag (i.e s6 instead of s5) will result in s6 being dropped in an unparse test case (see test_ignoredHiddenGroupRefWithNoSequenceParent), with a "DFDL 

       

      <xs:group name="s5">
        <xs:sequence>
          <xs:sequence dfdl:hiddenGroupRef="ex:s4" />
        </xs:sequence>
      </xs:group>
      <xs:group name="s6">
        <xs:sequence dfdl:hiddenGroupRef="ex:s4" />
      </xs:group>
      
      <xs:element name="e9" dfdl:lengthKind="delimited">
        <xs:complexType>
          <xs:sequence dfdl:separator=",">
            <xs:sequence dfdl:hiddenGroupRef="ex:s6" />
            <xs:element name="g" type="xs:int"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      

      With some preliminary investigating, I narrowed it down to how children are extracted with apparentXMLChildren in SequenceGroup.scala. There may be implications to changing this that needs to be investigated.

       

      Attachments

        Activity

          People

            slawrence Steve Lawrence
            okilo@tresys.com Olabusayo Kilo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: