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=15882>. 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=15882 XML schema can not be validated if loaded locally and DTD declaration is present into local copy of http://www.w3.org/2001/xml.xsd Summary: XML schema can not be validated if loaded locally and DTD declaration is present into local copy of http://www.w3.org/2001/xml.xsd Product: Xerces2-J Version: 2.2.1 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: Other Component: DTD AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If the parser is configured with an entity resolver which serves the content of the http://www.w3.org/2001/xml.xsd schema (e.g. from a local file because the parser is within a firewall), then when trying to validate a schema (say the one corresponding to the namespace http://www.w3.org/2001/vxml), the validation fails when it eventually comes to loading http://www.w3.org/2001/xml.xsd (which is required to validate the format of the schema provided for the namespace http://www.w3.org/2001/vxml) with the following error: "src-resolve: Can not resolve the name 'xml:lang' to a(n) attribute declaration component." The workaround is then to remove the DTD declaration "<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "XMLSchema.dtd" >" from http://www.w3.org/2001/xml.xsd as indicated in the tomcat development mailing list message available from the following URL: http://archives2.real-time.com/pipermail/tomcat-devel/2002-August/037525.html Notes: 1 - the XML DTD would be served when asked by the registered EntityResolver 2- If the schema are loaded from the network without registering an entity resolver, then this works fine. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
