Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
s14
-
None
Description
With the old -r and -n options, we had a test where you specify -n and a namespace without specifying a root. The CLI would complain.
WIth the new functionality, if you provide a namespace and no root, the CLI tries to use the namespace as the root.
eg:
echo -ne "12" | ./daffodil-cli/target/start parse -s daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section06/entities/charClassEntities.dfdl.xsd -r "
{http://www.example.org/example1/}"
I would expect this to recognize that the information enclosed in {} is the namespace, and no root is provided. However, we get the following error:
[error] Compilation (ProcessorFactory) produced 1 errors/warnings.
[error] Schema Definition Error: No root element found for
in any available namespace
Schema context: SchemaSet. Location in daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section06/entities/charClassEntities.dfdl.xsd.