Tests invalid TokenizedType which is against P56 VC: ID Attribute Default. The constant string "BOGUS" occurs in the DefaultDecl for the ID attribute "UniqueName".
<?xml version="1.0"?> <!-- validity constraint check for Production 56(Negative Test)--> <!DOCTYPE tokenizer [ <!ELEMENT tokenizer ANY> <!ATTLIST tokenizer UniqueName ID "BOGUS"> ]> <tokenizer UniqueName = "AC1999"> This is a Negative validity test for ID Attribute Default. Giving the attibute default as a const string </tokenizer>
Expected result | Actual result for gnu.xml.aelfred2.XmlReader |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>tokenizer</localName> <qualifiedName>tokenizer</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>UniqueName</localName> <qualifiedName>UniqueName</qualifiedName> <value>AC1999</value> <type>ID</type> </attribute> </attributes> </startElement> <char>\n</char> <char>T</char> <char>h</char> <char>i</char> <char>s</char> <char>\s</char> <char>i</char> <char>s</char> <char>\s</char> <char>a</char> <char>\s</char> <char>N</char> <char>e</char> <char>g</char> <char>a</char> <char>t</char> <char>i</char> <char>v</char> <char>e</char> <char>\s</char> <char>v</char> <char>a</char> <char>l</char> <char>i</char> <char>d</char> <char>i</char> <char>t</char> <char>y</char> <char>\s</char> <char>t</char> <char>e</char> <char>s</char> <char>t</char> <char>\s</char> <char>f</char> <char>o</char> <char>r</char> <char>\s</char> <char>I</char> <char>D</char> <char>\s</char> <char>A</char> <char>t</char> <char>t</char> <char>r</char> <char>i</char> <char>b</char> <char>u</char> <char>t</char> <char>e</char> <char>\s</char> <char>D</char> <char>e</char> <char>f</char> <char>a</char> <char>u</char> <char>l</char> <char>t</char> <char>.</char> <char>\n</char> <char>G</char> <char>i</char> <char>v</char> <char>i</char> <char>n</char> <char>g</char> <char>\s</char> <char>t</char> <char>h</char> <char>e</char> <char>\s</char> <char>a</char> <char>t</char> <char>t</char> <char>i</char> <char>b</char> <char>u</char> <char>t</char> <char>e</char> <char>\s</char> <char>d</char> <char>e</char> <char>f</char> <char>a</char> <char>u</char> <char>l</char> <char>t</char> <char>\s</char> <char>a</char> <char>s</char> <char>\s</char> <char>a</char> <char>\s</char> <char>c</char> <char>o</char> <char>n</char> <char>s</char> <char>t</char> <char>\s</char> <char>s</char> <char>t</char> <char>r</char> <char>i</char> <char>n</char> <char>g</char> <char>\n</char> <endElement> <namespaceURI/> <localName>tokenizer</localName> <qualifiedName>tokenizer</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">1 >= 1</bug> </ConformanceResults> |