You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2021/01/25 14:38:00 UTC

[jira] [Updated] (DAFFODIL-910) Schema Validation Error output contains incorrect path

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

Dave Thompson updated DAFFODIL-910:
-----------------------------------
    Labels: dev-verify  (was: reverify)

> Schema Validation Error output contains incorrect path
> ------------------------------------------------------
>
>                 Key: DAFFODIL-910
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-910
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Diagnostics, Usability
>    Affects Versions: s12
>         Environment: CentOS 6.3
>            Reporter: Jessie Chab
>            Priority: Minor
>              Labels: dev-verify
>
> {code}
> ~/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.
> {code}
> Note:
> {code}
> 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'
> {code}
> this is not the correct location of the schema - it should be
> /home/jchab/NGF/dfdl/{color:red}daffodil-test/src/test/resources/{color}edu/illinois/ncsa/daffodil/section06/namespaces/multi_A_11_nons.dfdl.xsd



--
This message was sent by Atlassian Jira
(v8.3.4#803005)