Tests the "Attribute Default Legal" VC by providing an illegal IDREFS value.
<!DOCTYPE collection [ <!ELEMENT collection ANY> <!ELEMENT identifier EMPTY> <!ATTLIST identifier value IDREFS "i-am-not-a-number 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 com.jclark.xml.sax.SAX2Driver |
---|---|
<?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>i-am-not-a-number\s42</value> <type>IDREFS</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/> <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>i-am-not-a-number\s42</value> <type>CDATA</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> |