Message:

   The following issue has been resolved as WON'T FIX.

   Resolver: Michael Glavassevich
       Date: Fri, 14 May 2004 8:14 AM

Relative URIs specified in the value of external-schemaLocation and 
external-noNamespaceSchemaLocation are resolved against the base URI of the instance 
document being validated. Unless you provide an entity resolver which does something 
else, this is the location that the parser will read when loading a schema document.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESJ-963

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESJ-963
    Summary: external-schemaLocation parser property requires absolute path to xsd 
despite being in the classpath
       Type: Bug

     Status: Resolved
   Priority: Minor
 Resolution: WON'T FIX

    Project: Xerces2-J
 Components: 
             JAXP
             SAX
   Versions:
             2.6.0

   Assignee: 
   Reporter: Jonathan Asbell

    Created: Fri, 14 May 2004 6:28 AM
    Updated: Fri, 14 May 2004 8:14 AM
Environment: Windows 2000, j2sdk-1_4_2_04-windows-i586

Description:
our schemas are placed in the classpath inside the "classes" directory of a java 
project, and using a jdom "SAXBuilder"  with xerces underneath we do the following:

SAXBuilder saxbuilder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");

saxbuilder.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation";,
 "http://www.whatever.com/myschema myschema.xsd");

Notice that "myschema.xsd" is correctly preceded by a space, and that it is not using 
an absolute path.

The parser is not able to locate the xsd file despite the fact that it is in the 
classpath




---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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

Reply via email to