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

Schema Validation Error output contains incorrect path

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: s12
    • Fix Version/s: deferred
    • Component/s: Diagnostics, Usability
    • Labels:
      None
    • Environment:
      CentOS 6.3

      Description

       
      ~/NGF/dfdl (0.12.0) echo $DAFFODIL_CLASSPATH
      /home/jchab/NGF/dfdl/daffodil-test/src/test/resources
      ~/NGF/dfdl (0.12.0) echo -n "10" | ./daffodil-0.12.0-SNAPSHOT/bin/daffodil.sh parse -s daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section06/namespaces/multi_base_11.dfdl.xsd --root root6
      [error] Compilation (ProcessorFactory) produced 1 errors/warnings.
      [error] Schema Definition Error: DFDL Schema Validation failed due to the following:
      DFDL Schema Validation Error due to org.xml.sax.SAXParseException; systemId: file:///home/jchab/NGF/dfdl/edu/illinois/ncsa/daffodil/section06/namespaces/multi_A_11_nons.dfdl.xsd; lineNumber: 22; columnNumber: 101; src-resolve.4.2: Error resolving component 'foo:stringy'. It was detected that 'foo:stringy' is in namespace 'http://www.w3.org/2001/XMLSchema', but components from this namespace are not referenceable from schema document 'file:///home/jchab/NGF/dfdl/edu/illinois/ncsa/daffodil/section06/namespaces/multi_A_11_nons.dfdl.xsd'. If this is the incorrect namespace, perhaps the prefix of 'foo:stringy' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:///home/jchab/NGF/dfdl/edu/illinois/ncsa/daffodil/section06/namespaces/multi_A_11_nons.dfdl.xsd'. File: /home/jchab/NGF/dfdl/daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section06/namespaces/multi_base_11.dfdl.xsd
      Schema context: SchemaSet. Location in daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section06/namespaces/multi_base_11.dfdl.xsd.

      Note:

      If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:///home/jchab/NGF/dfdl/edu/illinois/ncsa/daffodil/section06/namespaces/multi_A_11_nons.dfdl.xsd'

      this is not the correct location of the schema - it should be
      /home/jchab/NGF/dfdl/daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section06/namespaces/multi_A_11_nons.dfdl.xsd

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jchab Jessie Chab
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Tasks

                  Progress: 
                   0/0