Test case ibm-invalid-P76-ibm76i01.xml: com.jclark.xml.sax.SAX2Driver Passed

Test case ibm-invalid-P76-ibm76i01.xml: com.jclark.xml.sax.SAX2Driver Passed

Tests invalid NDataDecl which is against P76 VC: Notation declared. The Name "JPGformat" in the NDataDecl in the EntityDecl for "ge2" does not match the Name of any declared notation.

<?xml version="1.0"?>
<!DOCTYPE root 
[
<!ELEMENT root (#PCDATA)>
<!ATTLIST root att CDATA #IMPLIED>

<!ENTITY % pe1 '<!ATTLIST root att2 CDATA "&ge1;">'>
<!ENTITY ge1 "attdefaultvalue" >
%pe1;

<!--* notation JPGformat not declared *-->
<!ENTITY ge2  SYSTEM "image.jpg" NDATA JPGformat>

]>
<root att2="any" />
<!-- a invalid test case: test P76 VC: Notation Declared -->
Expected resultActual result for com.jclark.xml.sax.SAX2Driver
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <unparsedEntity>
        <name>ge2</name>
        <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/invalid/P76/image.jpg</systemID>
        <notation>JPGformat</notation>
    </unparsedEntity>
    <startElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>att2</localName>
                <qualifiedName>att2</qualifiedName>
                <value>any</value>
                <type>CDATA</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <unparsedEntity>
        <name>ge2</name>
        <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/invalid/P76/image.jpg</systemID>
        <notation>JPGformat</notation>
    </unparsedEntity>
    <startElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>att2</localName>
                <qualifiedName>att2</qualifiedName>
                <value>any</value>
                <type>CDATA</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>