Element content can't contain entity reference if replacement text is character reference to whitespace
<!DOCTYPE foo [ <!ELEMENT foo (foo*)> <!ENTITY space "&#32;"> ]> <foo><foo/>&space;<foo/></foo>
| Expected result | Actual result for net.sf.saxon.aelfred.SAXDriver |
|---|---|
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
<startDocument/>
<startElement>
<namespaceURI/>
<localName>foo</localName>
<qualifiedName>foo</qualifiedName>
<attributes/>
</startElement>
<startElement>
<namespaceURI/>
<localName>foo</localName>
<qualifiedName>foo</qualifiedName>
<attributes/>
</startElement>
<endElement>
<namespaceURI/>
<localName>foo</localName>
<qualifiedName>foo</qualifiedName>
</endElement>
<ignorable>\s</ignorable>
<startElement>
<namespaceURI/>
<localName>foo</localName>
<qualifiedName>foo</qualifiedName>
<attributes/>
</startElement>
<endElement>
<namespaceURI/>
<localName>foo</localName>
<qualifiedName>foo</qualifiedName>
</endElement>
<endElement>
<namespaceURI/>
<localName>foo</localName>
<qualifiedName>foo</qualifiedName>
</endElement>
<endDocument/>
</ConformanceResults>
| <?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
<startDocument/>
<resolveEntity>
<systemID>file:/home/elharo/SAXTest/xmlconf/eduni/errata-2e/E15h.xml</systemID>
</resolveEntity>
<startElement>
<namespaceURI/>
<localName>foo</localName>
<qualifiedName>foo</qualifiedName>
<attributes/>
</startElement>
<startElement>
<namespaceURI/>
<localName>foo</localName>
<qualifiedName>foo</qualifiedName>
<attributes/>
</startElement>
<endElement>
<namespaceURI/>
<localName>foo</localName>
<qualifiedName>foo</qualifiedName>
</endElement>
<ignorable>\s</ignorable>
<startElement>
<namespaceURI/>
<localName>foo</localName>
<qualifiedName>foo</qualifiedName>
<attributes/>
</startElement>
<endElement>
<namespaceURI/>
<localName>foo</localName>
<qualifiedName>foo</qualifiedName>
</endElement>
<endElement>
<namespaceURI/>
<localName>foo</localName>
<qualifiedName>foo</qualifiedName>
</endElement>
<endDocument/>
</ConformanceResults>
|