Tests the IDREF (matches an ID) VC
<!DOCTYPE root [ <!ELEMENT root ANY> <!ATTLIST root id ID #IMPLIED idref IDREF #IMPLIED > ]> <!-- each name must match the value of an id attribute on some element --> <root idref="d36d"> </root>
Expected result | Actual result for com.jclark.xml.sax.SAX2Driver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>idref</localName> <qualifiedName>idref</qualifiedName> <value>d36d</value> <type>IDREF</type> </attribute> </attributes> </startElement> <char>\n</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>idref</localName> <qualifiedName>idref</qualifiedName> <value>d36d</value> <type>CDATA</type> </attribute> </attributes> </startElement> <char>\n</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |