Hi,

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'll log this in Bugzilla if required and it is genuine.

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





Graham Mann
Adobe Systems Europe Ltd.

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

Reply via email to