Tests the "Entity Name" VC for the ENTITIES attribute type.
<!DOCTYPE root [ <!ELEMENT root EMPTY> <!ATTLIST root affiliated ENTITIES #REQUIRED > <!-- tests the "entity name" VC ... the "entity declared" clause, as applied to attributes of type ENTITIES --> <!NOTATION fruit PUBLIC "-//International Grocery Consortium//Edible//Healthy//EN"> <!ENTITY apple SYSTEM "http://www.apple.com" NDATA fruit> ]> <root affiliated="apple apple food"/>
Expected result | Actual result for org.dom4j.io.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <notation> <name>fruit</name> <publicID>-//International Grocery Consortium//Edible//Healthy//EN</publicID> </notation> <unparsedEntity> <name>apple</name> <systemID>http://www.apple.com</systemID> <notation>fruit</notation> </unparsedEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>affiliated</localName> <qualifiedName>affiliated</qualifiedName> <value>apple\sapple\sfood</value> <type>ENTITIES</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/invalid/attr02.xml</systemID> </resolveEntity> <notation> <name>fruit</name> <publicID>-//International\sGrocery\sConsortium//Edible//Healthy//EN</publicID> </notation> <unparsedEntity> <name>apple</name> <systemID>http://www.apple.com</systemID> <notation>fruit</notation> </unparsedEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>affiliated</localName> <qualifiedName>affiliated</qualifiedName> <value>apple\sapple\sfood</value> <type>ENTITIES</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName/> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |