[ 
https://issues.apache.org/jira/browse/DAFFODIL-2953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17895716#comment-17895716
 ] 

Steve Lawrence commented on DAFFODIL-2953:
------------------------------------------

It would be nice if we could implement a Locator for our loader, I imagine 
Xerces must somehow keep track of line/column information.

As a temporary fix, we should at least change it so if there is no line/col 
information then we should not output it. The above example would just output
{quote}
Schema context: Location src/main.dfdl.xsd
{quote}
Note that going back to Daffodil 3.3.0, we output aa similar error as now, but 
there is also a SDW that includes line/column information. Things have changed 
a lot since then, but at one point this information was kindof available.

> "Unable to resolve schemaLocation" error fails to give line/column number 
> information
> -------------------------------------------------------------------------------------
>
>                 Key: DAFFODIL-2953
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2953
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Front End
>            Reporter: Steve Lawrence
>            Priority: Major
>
> If I have something like this in a schema:
> {code:xml}
> <xs:import ... schemaLocation="/does/not/exists.dfdl.xsd" />
> {code}
> Then I get an error like this:
> {quote}
> [error] Schema Definition Error: Error loading schema due to Unable to 
> resolve schemaLocation: /does/not/exists.dfdl.xsd
> Schema context:  Location line -1 column -1 in src/main.dfdl.xsd
> {quote}
> Looks like this error message is from Xerces.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to