Tests the "Attribute Default Legal" VC by providing an illegal IDREF value.
<!DOCTYPE collection [ <!ELEMENT collection ANY> <!ELEMENT identifier EMPTY> <!ATTLIST identifier value IDREF "42" > <!-- tests the "attribute default legal" vc --> <!ELEMENT identified EMPTY> <!ATTLIST identified id ID #REQUIRED > ]> <collection> <identifier name="i-am-not-a-number"/> <identified id="i-am-not-a-number"/> </collection>
Expected result | Actual result for org.dom4j.io.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>collection</localName> <qualifiedName>collection</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\s</char> <char>\s</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>identifier</localName> <qualifiedName>identifier</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>name</localName> <qualifiedName>name</qualifiedName> <value>i-am-not-a-number</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>value</localName> <qualifiedName>value</qualifiedName> <value>42</value> <type>IDREF</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>identifier</localName> <qualifiedName>identifier</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>identified</localName> <qualifiedName>identified</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>id</localName> <qualifiedName>id</qualifiedName> <value>i-am-not-a-number</value> <type>ID</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>identified</localName> <qualifiedName>identified</qualifiedName> </endElement> <char>\n</char> <endElement> <namespaceURI/> <localName>collection</localName> <qualifiedName>collection</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/invalid/attr09.xml</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>collection</localName> <qualifiedName>collection</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\s</char> <char>\s</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>identifier</localName> <qualifiedName>identifier</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>name</localName> <qualifiedName>name</qualifiedName> <value>i-am-not-a-number</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>value</localName> <qualifiedName>value</qualifiedName> <value>42</value> <type>IDREF</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName/> <qualifiedName>identifier</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>identified</localName> <qualifiedName>identified</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>id</localName> <qualifiedName>id</qualifiedName> <value>i-am-not-a-number</value> <type>ID</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName/> <qualifiedName>identified</qualifiedName> </endElement> <char>\n</char> <endElement> <namespaceURI/> <localName/> <qualifiedName>collection</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |