Tests the "Entity Name" VC for the ENTITY attribute type.
<!DOCTYPE root [ <!ELEMENT root EMPTY> <!ATTLIST root affiliated ENTITY #REQUIRED > <!-- tests the "entity name" VC ... the "entity declared" clause, as applied to attributes of type ENTITY --> ]> <root affiliated="food"/>
Expected result | Actual result for net.sf.saxon.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>affiliated</localName> <qualifiedName>affiliated</qualifiedName> <value>food</value> <type>ENTITY</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/attr01.xml</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>affiliated</localName> <qualifiedName>affiliated</qualifiedName> <value>food</value> <type>ENTITY</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |