[ 
https://issues.apache.org/jira/browse/XERCESJ-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12784620#action_12784620
 ] 

Michael Glavassevich commented on XERCESJ-1392:
-----------------------------------------------

A couple issues here:
1) Why we're using xsi:schemaLocation instead of the schemaLocation specified 
on the xs:import.
2) Using the base URI from the importing schema document for resolving the URI 
specified in the instance.

I believe the 1st is at the discretion of the schema processor. The spec gives 
implementations freedom on how they locate schema documents. The schemaLocation 
on an import is just a hint. Changing this now might break users who rely on 
the current behaviour from Xerces.

The 2nd is clearly wrong. Should use the base URI from the instance for 
resolving URIs contained within it.


> Xerces breakes schema grammar with hints from instance xsi:schemaLocation
> -------------------------------------------------------------------------
>
>                 Key: XERCESJ-1392
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1392
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: JAXP (javax.xml.validation)
>    Affects Versions: 2.9.1
>         Environment: Windows XP 2003
>            Reporter: Ashitkin Alexander
>         Attachments: XercesBug.zip
>
>
> Xerces trying to resolve xs:import in schema using relative paths from 
> xsi:schemaLocation hint. Thus, validation fails with a "Failed to read schema 
> document" message.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to