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 org.dom4j.io.aelfred.SAXDriver |
---|---|
<?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/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/invalid/attr07.xml</systemID> </resolveEntity> <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/> <qualifiedName>arbor</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |