[
https://issues.apache.org/jira/browse/DAFFODIL-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dave Thompson closed DAFFODIL-2304.
-----------------------------------
Verified the specified commit (commit d9330b77ec0d2c563321f91ddf861debd004997f)
is included in the latest pull from the incubator-daffodil repository.
Verified all sbt test execute successfully including the new test.
Verified all schemas compiled/saved and nightly test suite executed
successfully.
> hiddenGroupRef in group is dropped during unparse
> -------------------------------------------------
>
> Key: DAFFODIL-2304
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2304
> Project: Daffodil
> Issue Type: Bug
> Components: Front End
> Affects Versions: 2.5.0
> Reporter: Olabusayo Kilo
> Assignee: Steve Lawrence
> Priority: Major
> Fix For: 2.6.0
>
>
> 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
>
> {code:java}
> <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>
> {code}
> 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.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)