DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13626>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13626

Bug when specifying relative paths using URLs

           Summary: Bug when specifying relative paths using URLs
           Product: Xerces2-J
           Version: 2.2.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: SAX
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi,

I've run into a problem when upgrading to the new release of Xerces (2.2.0) when
it comes to relative paths for schema locations. Here is the outline of the problem:

I have an xml file that I want to validate using a W3C XML Schema. My xml file
is located in the following location:

C:\Files\test.xml

and my schema file is located here:

C:\Files\Schemas\test.xsd


In the old version of Xerces I was using (2.0.3) the following schema locations
would all work in test.xml:

(absolute) xsi:noNamespaceSchemaLocation="C:\Files\Schemas\test.xsd"
(relative) xsi:noNamespaceSchemaLocation="Schemas\test.xsd"
(absolute) xsi:noNamespaceSchemaLocation="file:///C:/Files/Schemas/test.xsd"

while the following relative URL specification wouldn't work:

(relative) xsi:noNamespaceSchemaLocation="file:Schemas/test.xsd"


In the new version of Xerces (2.2.0) only the following works:

(absolute) xsi:noNamespaceSchemaLocation="file:///C:/Files/Schemas/test.xsd"

while all these will fail:

(absolute) xsi:noNamespaceSchemaLocation="C:\Files\Schemas\test.xsd"
(relative) xsi:noNamespaceSchemaLocation="Schemas\test.xsd"
(relative) xsi:noNamespaceSchemaLocation="file:Schemas/test.xsd" 


from what I can understand on the mailing list you have changed the
implementation so that you no longer can specify system dependant paths for the
schema location and instead you must use URLs. This is ok but I think there is
still a bug when it comes to specifying relative paths using URLs.
>From what I can understand

file:Schemas/test.xsd

is a valid relative path to the schema document and these types of relative
paths works in both Xalan and Saxon. Am I doing something wrong here or is this
is bug in the new release?

Cheers,
/Eddie

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to