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=7565>. 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=7565 Attributes in different namespaces produce a Fatal Exception Summary: Attributes in different namespaces produce a Fatal Exception Product: Xerces-C++ Version: 1.7.0 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Validating Parser (Schema) (Xerces 1.5 or up only) AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I've a simple test that throws a fatal SAXException - in the example I've added below I expect the document to have a single error, namely that the attribute Status has not been declared for the target namespace. What I'm getting is an error for the attribute in the ##other namespace followed by a fatal error (produced by a SAXException) I've tested using Xerces 1.7.0, DOMCount -s -n -f -v=always filename I've also tried all the options in the processContents attribute of the wildcard ##any. (The one I want to use is lax) Document <?xml version="1.0" encoding="UTF-8"?> <JDF xmlns="http://NamespaceTest.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:MyPrefix="http://www.MyCompany.com/MyNamespace" xsi:schemaLocation="http://NamespaceTest.org NamespaceTest.xsd" MyAttributeName="abc" MyPrefix:MyAttributeName="abc" MyPrefix:AnotherAttrib="" ID="MyID" Type="Product" Status="Waiting"/> Schema <?xml version="1.0" encoding="UTF-8"?> <xs:schema targetNamespace="http://NamespaceTest.org" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://NamespaceTest.org" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="JDF"> <xs:complexType> <xs:attribute name="MyAttributeName" type="xs:string" use="optional"/> <xs:attribute name="ID" type="xs:ID" use="optional"/> <xs:attribute name="Type" type="xs:NMTOKEN" use="optional"/> <xs:anyAttribute namespace="##other"/> </xs:complexType> </xs:element> </xs:schema> Errors Error at file http://www- norwich.eur.adobe.com/proddev/jdf/Samples/Version2.0/NamespaceTest.xml, line 3, char 142 Message: Attribute 'MyAttributeName' should be un-qualified Fatal Error at file http://www- norwich.eur.adobe.com/proddev/jdf/Samples/Version2.0/NamespaceTest.xml, line 3, char 142 Message: The attribute 'MyAttributeName' is already used in element 'JDF' Errors occured, no output available --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
