Tests the ID Attribute Default VC
<!DOCTYPE root [ <!ATTLIST root id2 ID "x23" > ]> <!-- an ID attribute must have a declared default of #IMPLIED or #REQUIRED --> <root/>
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>id2</localName> <qualifiedName>id2</qualifiedName> <value>x23</value> <type>ID</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/id04.xml</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>id2</localName> <qualifiedName>id2</qualifiedName> <value>x23</value> <type>ID</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName/> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |