Attribute uniqueness: repeated attribute with different prefixes
<?xml version="1.0"?> <!-- Attribute uniqueness: repeated attribute with different prefixes --> <foo xmlns:a="http://example.org/~wilbur" xmlns:b="http://example.org/~wilbur"> <bar a:attr="1" b:attr="2"/> </foo>
Expected result | Actual result for org.dom4j.io.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startPrefixMapping> <prefix>a</prefix> <data>http://example.org/~wilbur</data> </startPrefixMapping> <startPrefixMapping> <prefix>b</prefix> <data>http://example.org/~wilbur</data> </startPrefixMapping> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\n</char> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/eduni/namespaces/1.0/036.xml</systemID> </resolveEntity> <endDocument/> <bug reason="Parser should only throw SAXExceptions" type="java.lang.IllegalStateException">can't declare any more prefixes in this context</bug> </ConformanceResults> |