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=7685>. 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=7685 xerces error parsing xml-file with xml:lang attribute in it Summary: xerces error parsing xml-file with xml:lang attribute in it Product: Xerces2-J Version: 2.0.0 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Other AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] hi, i am working with an xerces parser on a local test environment. i assume that the xml:lang attribute is not recognized by the parser. i do not know which 2.0 version of xerces i am using. (xalan, for example, does parse the same xml- instance correctly) i get the following error message: .xsl:file:/c:/perforce/Transformation/dev/src/_SAPTransformation/xslt/stylesheet s/sap2ecx/catalog/Catalog.xsl file:/C:/TEMP/testframework-beta/out/ecx/catalog/Catalog_Min.xml:2: Schema error: prefix : [xml] cannot be resolved to a URI. file:/C:/TEMP/testframework-beta/out/ecx/catalog/Catalog_Min.xml:2: Schema error: no attribute named "base" was defined in schema : . file:/C:/TEMP/testframework-beta/out/ecx/catalog/Catalog_Min.xml:2: Schema error: prefix : [xml] cannot be resolved to a URI. file:/C:/TEMP/testframework-beta/out/ecx/catalog/Catalog_Min.xml:2: Schema error: no attribute named "lang" was defined in schema : . file:/C:/TEMP/testframework-beta/out/ecx/catalog/Catalog_Min.xml:2: Schema error: prefix : [xml] cannot be resolved to a URI. file:/C:/TEMP/testframework-beta/out/ecx/catalog/Catalog_Min.xml:2: Schema error: no attribute named "space" was defined in schema : . file:/C:/TEMP/testframework-beta/out/ecx/catalog/Catalog_Min.xml:2: Schema error: no attribute named "lang" was defined in schema : http://www.w3.org/1998/namespace. the xml-instance to be parsed looks like this: <?xml version="1.0" encoding="UTF-8"?> <CATALOG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:////c:/perforce/Transformation/dev/src/_Test AndDocu/schemas/ecx/CATALOG.xsd" xml:lang="de-DE"> </CATALOG> i use a locally installed catalog-schema (CATALOG.xsd) to parse the xml- instance. a sample would be: <?xml version="1.0" encoding="UTF-8"?> <!-- edited with XML Spy v4.0.1 U (http://www.xmlspy.com) by Ralf Sievers (SAPMarkets Europe GmbH) --> <!--W3C Schema generated by XML Spy v4.0.1 U (http://www.xmlspy.com)--> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xml="http://www.w3.org/1998/namespace" elementFormDefault="qualified"> <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/> <xs:element name="CATALOG"> <xs:attribute ref="xml:lang"/> </xs:element> </xs:schema> thanks for an info. ralf sievers --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
