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 com.bluecast.xml.Piccolo |
---|---|
<?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/> <notation> <name>encyclopaedia</name> <publicID>-//fooCorp\sInc//NOTATION\ssomething//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> |