Tests inclusion of a well-formed internal entity, which holds an element required by the content model.
<!DOCTYPE doc [ <!ENTITY e "<e/>"> <!ELEMENT doc (e)> <!ELEMENT e EMPTY> ]> <doc>&e;</doc>
Expected result | Actual result for com.jclark.xml.sax.SAX2Driver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <startElement> <namespaceURI/> <localName>e</localName> <qualifiedName>e</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>e</localName> <qualifiedName>e</qualifiedName> </endElement> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <startElement> <namespaceURI/> <localName>e</localName> <qualifiedName>e</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>e</localName> <qualifiedName>e</qualifiedName> </endElement> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |