Tests Attribute with Name Eq AttValue and VC: Attribute Value Type
<?xml version="1.0"?> <!DOCTYPE root [ <!ELEMENT root (#PCDATA|b)* > <!ELEMENT b (#PCDATA) > <!ATTLIST b attr1 CDATA #REQUIRED> <!ATTLIST b attr2 (abc|def) "abc"> <!ATTLIST b attr3 CDATA #FIXED "fixed"> ]> <root> <b attr1="value1" attr2="def" attr3="fixed">Name eq AttValue</b> </root> <!--* testing P41 *-->
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>N</char> <char>a</char> <char>m</char> <char>e</char> <char>\s</char> <char>e</char> <char>q</char> <char>\s</char> <char>A</char> <char>t</char> <char>t</char> <char>V</char> <char>a</char> <char>l</char> <char>u</char> <char>e</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> |