Test case ext02: org.dom4j.io.aelfred.SAXDriver Failed

Test case ext02: org.dom4j.io.aelfred.SAXDriver Failed

Tests use of external parsed entities with different encodings than the base document.

<!DOCTYPE foo [
<!ELEMENT foo (root*)>
<!ELEMENT root EMPTY>
<!ENTITY utf16b SYSTEM "../invalid/utf16b.xml">
<!ENTITY utf16l SYSTEM "../invalid/utf16l.xml">
]>

<foo> &utf16b; &utf16l; </foo>
Expected resultActual result for org.dom4j.io.aelfred.SAXDriver
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>foo</localName>
        <qualifiedName>foo</qualifiedName>
        <attributes/>
    </startElement>
    <ignorable>\s</ignorable>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/sun/invalid/utf16b.xml</systemID>
    </resolveEntity>
    <ignorable>\n</ignorable>
    <startElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
        <attributes/>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
    </endElement>
    <ignorable>\n</ignorable>
    <ignorable>\s</ignorable>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/sun/invalid/utf16l.xml</systemID>
    </resolveEntity>
    <ignorable>\n</ignorable>
    <startElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
        <attributes/>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
    </endElement>
    <ignorable>\n</ignorable>
    <ignorable>\s</ignorable>
    <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/sun/valid/ext02.xml</systemID>
    </resolveEntity>
    <startElement>
        <namespaceURI/>
        <localName>foo</localName>
        <qualifiedName>foo</qualifiedName>
        <attributes/>
    </startElement>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/sun/invalid/utf16b.xml</systemID>
    </resolveEntity>
    <ignorable>\s</ignorable>
    <ignorable>\n</ignorable>
    <startElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
        <attributes/>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName/>
        <qualifiedName>root</qualifiedName>
    </endElement>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/sun/invalid/utf16l.xml</systemID>
    </resolveEntity>
    <ignorable>\n</ignorable>
    <ignorable>\s</ignorable>
    <ignorable>\n</ignorable>
    <startElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
        <attributes/>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName/>
        <qualifiedName>root</qualifiedName>
    </endElement>
    <ignorable>\n</ignorable>
    <ignorable>\s</ignorable>
    <endElement>
        <namespaceURI/>
        <localName/>
        <qualifiedName>foo</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>