Test case valid-sa-091: com.jclark.xml.sax.SAX2Driver Failed

Test case valid-sa-091: com.jclark.xml.sax.SAX2Driver Failed

Verifies that an XML parser will parse an ENTITY attribute; the output phase of this test ensures that the notation is reported to the application, and for validating parsers it further tests that the entity is so reported.

<!DOCTYPE doc [
<!NOTATION n SYSTEM "http://www.w3.org/">
<!ENTITY e SYSTEM "http://www.w3.org/" NDATA n>
<!ELEMENT doc (#PCDATA)>
<!ATTLIST doc a ENTITY "e">
]>
<doc></doc>
Expected resultActual result for com.jclark.xml.sax.SAX2Driver
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <notation>
        <name>n</name>
        <systemID>http://www.w3.org/</systemID>
    </notation>
    <unparsedEntity>
        <name>e</name>
        <systemID>http://www.w3.org/</systemID>
        <notation>n</notation>
    </unparsedEntity>
    <startElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>a</localName>
                <qualifiedName>a</qualifiedName>
                <value>e</value>
                <type>ENTITY</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <notation>
        <name>n</name>
        <systemID>http://www.w3.org/</systemID>
    </notation>
    <unparsedEntity>
        <name>e</name>
        <systemID>http://www.w3.org/</systemID>
        <notation>n</notation>
    </unparsedEntity>
    <startElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>a</localName>
                <qualifiedName>a</qualifiedName>
                <value>e</value>
                <type>CDATA</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>