Test case valid-sa-089: com.jclark.xml.sax.SAX2Driver Passed

Test case valid-sa-089: com.jclark.xml.sax.SAX2Driver Passed

Tests entity expansion of three legal character references, which each expand to a Unicode surrogate pair.

<!DOCTYPE doc [
<!ENTITY e "&#x10000;&#x10FFFD;&#x10FFFF;">
<!ELEMENT doc (#PCDATA)>
]>
<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>\uD800</char>
    <char>\uDC00</char>
    <char>\uDBFF</char>
    <char>\uDFFD</char>
    <char>\uDBFF</char>
    <char>\uDFFF</char>
    <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>
    <char>\uD800</char>
    <char>\uDC00</char>
    <char>\uDBFF</char>
    <char>\uDFFD</char>
    <char>\uDBFF</char>
    <char>\uDFFF</char>
    <endElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>