[
https://issues.apache.org/jira/browse/DAFFODIL-2760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Olabusayo Kilo resolved DAFFODIL-2760.
--------------------------------------
Resolution: Duplicate
Duplicate of DAFFODIL-697, which was fixed in
b8976946ec02c0475ce665b527db3d6c7014dba9
> withDistinguishedRootNode() Not Working As Expected
> ---------------------------------------------------
>
> Key: DAFFODIL-2760
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2760
> Project: Daffodil
> Issue Type: Bug
> Reporter: Varun Zaver
> Priority: Minor
>
> When the user uses withDistinguishedRootNode(), the specified element to act
> as the rootNode is not set. Instead it seems like the order of the elements
> of the schema file decides the root element.
> Steps to reproduce:
> 1. Run: sbt "testOnly org.apache.daffodil.TestScalaAPI" => Should succeed
> 2. Change "e3" to "e4" in test testScalaAPI3
> 3. Run: sbt "testOnly org.apache.daffodil.TestScalaAPI" => Should succeed
> Note: Despite needing "e3" to be the root node, the test still passes when
> the root node is supposedly changed to "e4" with withDistinguishedRootNode()
> 4. Move element "e4" above element "e3" in mySchema3.dfdl.xsd
> 5. Run: sbt "testOnly org.apache.daffodil.TestScalaAPI" => Two test should
> fail.
> Note: The two tests that fail use withDistinguishedRootNode() to define the
> root element, however, despite defining the root element, the tests still
> fail because of the order of the elements in the schema file.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)