Tests Enumeration for P59 VC: Enumeration. The value "one" of the Enumeration attribute "attr" matches one of the element names declared.
<?xml version="1.0"?> <!-- validity test for Production 59--> <!DOCTYPE test [ <!ELEMENT test ANY> <!ELEMENT one EMPTY> <!ELEMENT two EMPTY> <!ELEMENT num EMPTY> <!ATTLIST num value (one|two) #IMPLIED> ]> <test> <num value = "one"></num> This is a Positive test The attribute values of type Enumeration match one of the Nmtoken tokens in the declaration. </test>
Expected result | Actual result for gnu.xml.aelfred2.XmlReader |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> <attributes/> </startElement> <char>\n</char> <startElement> <namespaceURI/> <localName>num</localName> <qualifiedName>num</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>value</localName> <qualifiedName>value</qualifiedName> <value>one</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>num</localName> <qualifiedName>num</qualifiedName> </endElement> <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>P</char> <char>o</char> <char>s</char> <char>i</char> <char>t</char> <char>i</char> <char>v</char> <char>e</char> <char>\s</char> <char>t</char> <char>e</char> <char>s</char> <char>t</char> <char>\n</char> <char>T</char> <char>h</char> <char>e</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>v</char> <char>a</char> <char>l</char> <char>u</char> <char>e</char> <char>s</char> <char>\s</char> <char>o</char> <char>f</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>E</char> <char>n</char> <char>u</char> <char>m</char> <char>e</char> <char>r</char> <char>a</char> <char>t</char> <char>i</char> <char>o</char> <char>n</char> <char>\s</char> <char>m</char> <char>a</char> <char>t</char> <char>c</char> <char>h</char> <char>\s</char> <char>o</char> <char>n</char> <char>e</char> <char>\s</char> <char>o</char> <char>f</char> <char>\s</char> <char>t</char> <char>h</char> <char>e</char> <char>\s</char> <char>N</char> <char>m</char> <char>t</char> <char>o</char> <char>k</char> <char>e</char> <char>n</char> <char>\s</char> <char>t</char> <char>o</char> <char>k</char> <char>e</char> <char>n</char> <char>s</char> <char>\s</char> <char>i</char> <char>n</char> <char>\s</char> <char>t</char> <char>h</char> <char>e</char> <char>\s</char> <char>d</char> <char>e</char> <char>c</char> <char>l</char> <char>a</char> <char>r</char> <char>a</char> <char>t</char> <char>i</char> <char>o</char> <char>n</char> <char>.</char> <char>\n</char> <endElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</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> |