Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1016

CLI: root/namespace option should recognize if only namespace is provided

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • deferred
    • s14
    • CLI, Diagnostics
    • None

      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.

              Unassigned Unassigned
              jchab Jessie Chab
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: