Tests all AttlistDecl and AttDef Patterns in P52 and P53
<?xml version="1.0"?> <!DOCTYPE root [ <!ELEMENT root ANY> <!ELEMENT a (#PCDATA)* > <!ELEMENT b (#PCDATA) > <!--* All AttlistDecl Patterns in P52 and P53 *--> <!ATTLIST a> <!ATTLIST a > <!ATTLIST b battr1 CDATA #REQUIRED > <!ATTLIST b battr2 CDATA #IMPLIED battr3 CDATA #FIXED "fixedvalue" battr4 (abc|def) "abc" > ]> <root> <a> Element type a </a> <b battr1 = "anyvalue" battr3="fixedvalue" battr4 ="def"> test P52 and P53 </b> </root> <!--* a valid test: tests P52 and P53 *-->
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>a</localName> <qualifiedName>a</qualifiedName> <attributes/> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>a</char> <char>\s</char> <endElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>battr1</localName> <qualifiedName>battr1</qualifiedName> <value>anyvalue</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>battr3</localName> <qualifiedName>battr3</qualifiedName> <value>fixedvalue</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>battr4</localName> <qualifiedName>battr4</qualifiedName> <value>def</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <char>\s</char> <char>t</char> <char>e</char> <char>s</char> <char>t</char> <char>\s</char> <char>P</char> <char>5</char> <char>2</char> <char>\s</char> <char>a</char> <char>n</char> <char>d</char> <char>\s</char> <char>P</char> <char>5</char> <char>3</char> <char>\s</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> |