This test violates VC: Attribute Value Type in P41. attr1 for Element b is not declared.
<?xml version="1.0"?> <!DOCTYPE root [ <!ELEMENT root (#PCDATA|b)* > <!ELEMENT b (#PCDATA) > <!ATTLIST b attr2 (abc|def) "abc"> <!ATTLIST b attr3 CDATA #FIXED "fixed"> ]> <root> <b attr1="value1" attr2="def" attr3="fixed">attr1 not declared</b> </root> <!--* testing VC:Attribute Value Type *-->
Expected result | Actual result for gnu.xml.aelfred2.XmlReader |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>attr1</localName> <qualifiedName>attr1</qualifiedName> <value>value1</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>attr2</localName> <qualifiedName>attr2</qualifiedName> <value>def</value> <type>NMTOKEN</type> </attribute> <attribute> <namespaceURI/> <localName>attr3</localName> <qualifiedName>attr3</qualifiedName> <value>fixed</value> <type>CDATA</type> </attribute> </attributes> </startElement> <char>a</char> <char>t</char> <char>t</char> <char>r</char> <char>1</char> <char>\s</char> <char>n</char> <char>o</char> <char>t</char> <char>\s</char> <char>d</char> <char>e</char> <char>c</char> <char>l</char> <char>a</char> <char>r</char> <char>e</char> <char>d</char> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <char>\n</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <endDocument/> <bug reason="Parser should only throw SAXExceptions" type="java.lang.ArrayIndexOutOfBoundsException">0 >= 0</bug> </ConformanceResults> |