[ 
https://issues.apache.org/jira/browse/DAFFODIL-1016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Beckerle updated DAFFODIL-1016:
---------------------------------------
    Priority: Trivial  (was: Major)

> CLI: root/namespace option should recognize if only namespace is provided
> -------------------------------------------------------------------------
>
>                 Key: DAFFODIL-1016
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1016
>             Project: Daffodil
>          Issue Type: Bug
>          Components: CLI, Diagnostics
>    Affects Versions: s14
>            Reporter: Jessie Chab
>            Priority: Trivial
>
> 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 
> {http://www.example.org/example1/} in any available namespace
> Schema context: SchemaSet. Location in 
> daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section06/entities/charClassEntities.dfdl.xsd.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to