Tests the "Attribute Default Legal" VC by providing an illegal NMTOKEN value.
<!DOCTYPE root [ <!ELEMENT root EMPTY> <!ATTLIST root value NMTOKEN "alpha/beta" > <!-- tests the "attribute default legal" vc --> ]> <root value="brittannica"/>
Expected result | Actual result for org.dom4j.io.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>value</localName> <qualifiedName>value</qualifiedName> <value>brittannica</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/invalid/attr13.xml</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>value</localName> <qualifiedName>value</qualifiedName> <value>brittannica</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName/> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |