Test case not-wf-sa-092: org.dom4j.io.aelfred.SAXDriver Failed

Test case not-wf-sa-092: org.dom4j.io.aelfred.SAXDriver Failed

The replacement text of this entity has an illegal reference, because the character reference is expanded immediately.

<!DOCTYPE doc [
<!ENTITY e "<foo a='&#38;'></foo>">
]>
<doc>&e;</doc>
Expected resultActual result for org.dom4j.io.aelfred.SAXDriver
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
        <attributes/>
    </startElement>
    <fatalError/>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/xmltest/not-wf/sa/092.xml</systemID>
    </resolveEntity>
    <startElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
        <attributes/>
    </startElement>
    <fatalError/>
    <endDocument/>
</ConformanceResults>