Test demonstrates that when more that one definition is provided for the same attribute of a given element type only the first declaration is binding.
<!DOCTYPE doc [ <!ELEMENT doc ANY> <!ENTITY % e SYSTEM "026.ent"> %e; <!ATTLIST doc a1 CDATA "x1" a2 CDATA "x2"> ]> <doc></doc>
Expected result | Actual result for com.bluecast.xml.Piccolo |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/xmltest/valid/not-sa/026.ent</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>a1</localName> <qualifiedName>a1</qualifiedName> <value>w1</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>a2</localName> <qualifiedName>a2</qualifiedName> <value>x2</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/xmltest/valid/not-sa/026.ent</systemID> </resolveEntity> <endDocument/> <bug reason="Parser should only throw SAXExceptions" type="java.lang.NullPointerException"/> </ConformanceResults> |