Tests the "Attribute Default Legal" VC by providing an illegal NOTATIONS value.
<!DOCTYPE reference [ <!ELEMENT reference EMPTY> <!ATTLIST reference source NOTATION (brittannica | worldbook) "encarta" > <!-- tests the "attribute default legal" vc --> <!NOTATION brittannica SYSTEM "http://www.eb.com/"> <!NOTATION worldbook SYSTEM "http://www.worldbook.com"> ]> <reference source="brittannica"/>
Expected result | Actual result for com.jclark.xml.sax.SAX2Driver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <notation> <name>brittannica</name> <systemID>http://www.eb.com/</systemID> </notation> <notation> <name>worldbook</name> <systemID>http://www.worldbook.com</systemID> </notation> <startElement> <namespaceURI/> <localName>reference</localName> <qualifiedName>reference</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>source</localName> <qualifiedName>source</qualifiedName> <value>brittannica</value> <type>NOTATION</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>reference</localName> <qualifiedName>reference</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <notation> <name>brittannica</name> <systemID>http://www.eb.com/</systemID> </notation> <notation> <name>worldbook</name> <systemID>http://www.worldbook.com</systemID> </notation> <startElement> <namespaceURI/> <localName>reference</localName> <qualifiedName>reference</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>source</localName> <qualifiedName>source</qualifiedName> <value>brittannica</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>reference</localName> <qualifiedName>reference</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |