Tests the "Attribute Default Legal" VC by providing an illegal ENTITIES value.
<!DOCTYPE references [ <!ELEMENT references EMPTY> <!ATTLIST references value ENTITIES "brittannica 2orldbook" > <!-- tests the "attribute default legal" vc --> <!NOTATION encyclopaedia PUBLIC "-//fooCorp Inc//NOTATION something//EN"> <!ENTITY brittannica SYSTEM "http://www.eb.com/" NDATA encyclopaedia> <!ENTITY worldbook SYSTEM "http://www.worldbook.com"> ]> <references value="brittannica"/>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <notation> <name>encyclopaedia</name> <publicID>-//fooCorp Inc//NOTATION something//EN</publicID> </notation> <unparsedEntity> <name>brittannica</name> <systemID>http://www.eb.com/</systemID> <notation>encyclopaedia</notation> </unparsedEntity> <startElement> <namespaceURI/> <localName>references</localName> <qualifiedName>references</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>value</localName> <qualifiedName>value</qualifiedName> <value>brittannica</value> <type>ENTITIES</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>references</localName> <qualifiedName>references</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <unparsedEntity> <name>brittannica</name> <systemID>http://www.eb.com/</systemID> <notation>encyclopaedia</notation> </unparsedEntity> <startElement> <namespaceURI/> <localName>references</localName> <qualifiedName>references</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>value</localName> <qualifiedName>value</qualifiedName> <value>brittannica</value> <type>ENTITIES</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>references</localName> <qualifiedName>references</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |