  | |  | Updated: (XERCESJ-1002) Importing schema file "xml.xsd " from local URI | Updated: (XERCESJ-1002) Importing schema file "xml.xsd " from local URI 2007-04-29 - By Michael Glavassevich (JIRA)
[ https://issues.apache.org/jira/browse/XERCESJ-1002?page=com.atlassian .jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Glavassevich updated XERCESJ-1002: ------------------------------------------
Component/s: XML Schema Structures
> Importing schema file "xml.xsd" from local URI > ---------------------------------------------- > > Key: XERCESJ-1002 > URL: https://issues.apache.org/jira/browse/XERCESJ-1002 > Project: Xerces2-J > Issue Type: Bug > Components: XML Schema Structures > Affects Versions: 2.5.0, 2.6.2 > Environment: operating system: WinXP > Reporter: rippey > > I attempt to parse a XML file with org.apache.xerces.parsers.DOMParser Xerces -J 2.5.0 or 2.6.2 > Parsing a XML file which schema file imports xml.xsd works if the schema file looks like this: > <xsd:schema targetNamespace="http://dummy#" elementFormDefault="qualified" attributeFormDefault="unqualified" > xmlns:dummy="http://dummy#" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation= "http://www.w3.org/2001/xml.xsd"/> > But on the other hand if I try to work offline and specify "xml.xsd" locally this exception is thrown: > "Message: src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute declaration' component." > It seems that the "xml.xsd" is not found at locally URI. > Following cases doesn't work as schemaLocation: > *) <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemeLocation ="file:///C:/xml.xsd"/> > *) <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemeLocation ="file://C:/xml.xsd"/> > *) <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemeLocation ="file:/C:/xml.xsd"/> > *) <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemeLocation ="file:C:/xml.xsd"/> > *) <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemeLocation ="xml.xsd"/> > *) <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemeLocation ="http://localhost/xml.xsd"/> with tomcat
-- 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: j-dev-unsubscribe@(protected) For additional commands, e-mail: j-dev-help@(protected)
|
|
 |