Test case not-wf-sa-120: com.jclark.xml.sax.SAX2Driver Passed

Test case not-wf-sa-120: com.jclark.xml.sax.SAX2Driver Passed

Character references are expanded in the replacement text of an internal entity, which is then parsed as usual. Accordingly, & must be doubly quoted - encoded either as & or as &.

<!DOCTYPE doc [
<!ENTITY e "&#38;">
]>
<doc>
&e;
</doc>
Expected resultActual 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>
    <char>\n</char>
    <fatalError/>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
        <attributes/>
    </startElement>
    <char>\n</char>
    <fatalError/>
</ConformanceResults>