Tests the "Enumeration" VC by providing a value which wasn't one of the choices.
<!DOCTYPE arbor [ <!ELEMENT arbor EMPTY> <!ATTLIST arbor type (fruit | vegetable) "fruit" > <!-- tests the 'must match one of the nmtokens included in the declaration' part of the "Enumeration" VC --> ]> <arbor type="money"/>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>arbor</localName> <qualifiedName>arbor</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>type</localName> <qualifiedName>type</qualifiedName> <value>money</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>arbor</localName> <qualifiedName>arbor</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>arbor</localName> <qualifiedName>arbor</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>type</localName> <qualifiedName>type</qualifiedName> <value>money</value> <type/> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>arbor</localName> <qualifiedName>arbor</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |