Test case ibm-valid-P60-ibm60v01.xml: com.jclark.xml.sax.SAX2Driver Passed

Test case ibm-valid-P60-ibm60v01.xml: com.jclark.xml.sax.SAX2Driver Passed

Tests DefaultDecl for P60. It shows different options "#REQUIRED", "#FIXED", "#IMPLIED", and default for the attribute "chapter".

<?xml  version="1.0"?>
<!-- syntax test for Production 60-->
<!DOCTYPE Java 
 [
 <!ELEMENT Java (#PCDATA|one|two|three|four)*>
 <!ELEMENT one EMPTY>
 <!ELEMENT two EMPTY>
 <!ELEMENT three EMPTY>
 <!ELEMENT four EMPTY>
 <!ATTLIST one chapter CDATA #IMPLIED>
 <!ATTLIST two chapter CDATA #REQUIRED>
 <!ATTLIST three chapter CDATA #FIXED "JavaBeans">
 <!ATTLIST four chapter CDATA 'defualt'>
 ]>
<Java><one chapter="Introduction"/>
 <three chapter="JavaBeans"/>
 Positive test
 DefaultDecl attributes values IMPLIED, REQUIRED, FIXED and default
</Java>
Expected resultActual result for com.jclark.xml.sax.SAX2Driver
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>Java</localName>
        <qualifiedName>Java</qualifiedName>
        <attributes/>
    </startElement>
    <startElement>
        <namespaceURI/>
        <localName>one</localName>
        <qualifiedName>one</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>chapter</localName>
                <qualifiedName>chapter</qualifiedName>
                <value>Introduction</value>
                <type>CDATA</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>one</localName>
        <qualifiedName>one</qualifiedName>
    </endElement>
    <char>\n</char>
    <char>\s</char>
    <startElement>
        <namespaceURI/>
        <localName>three</localName>
        <qualifiedName>three</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>chapter</localName>
                <qualifiedName>chapter</qualifiedName>
                <value>JavaBeans</value>
                <type>CDATA</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>three</localName>
        <qualifiedName>three</qualifiedName>
    </endElement>
    <char>\n</char>
    <char>\s</char>
    <char>P</char>
    <char>o</char>
    <char>s</char>
    <char>i</char>
    <char>t</char>
    <char>i</char>
    <char>v</char>
    <char>e</char>
    <char>\s</char>
    <char>t</char>
    <char>e</char>
    <char>s</char>
    <char>t</char>
    <char>\n</char>
    <char>\s</char>
    <char>D</char>
    <char>e</char>
    <char>f</char>
    <char>a</char>
    <char>u</char>
    <char>l</char>
    <char>t</char>
    <char>D</char>
    <char>e</char>
    <char>c</char>
    <char>l</char>
    <char>\s</char>
    <char>a</char>
    <char>t</char>
    <char>t</char>
    <char>r</char>
    <char>i</char>
    <char>b</char>
    <char>u</char>
    <char>t</char>
    <char>e</char>
    <char>s</char>
    <char>\s</char>
    <char>v</char>
    <char>a</char>
    <char>l</char>
    <char>u</char>
    <char>e</char>
    <char>s</char>
    <char>\s</char>
    <char>I</char>
    <char>M</char>
    <char>P</char>
    <char>L</char>
    <char>I</char>
    <char>E</char>
    <char>D</char>
    <char>,</char>
    <char>\s</char>
    <char>R</char>
    <char>E</char>
    <char>Q</char>
    <char>U</char>
    <char>I</char>
    <char>R</char>
    <char>E</char>
    <char>D</char>
    <char>,</char>
    <char>\s</char>
    <char>F</char>
    <char>I</char>
    <char>X</char>
    <char>E</char>
    <char>D</char>
    <char>\s</char>
    <char>a</char>
    <char>n</char>
    <char>d</char>
    <char>\s</char>
    <char>d</char>
    <char>e</char>
    <char>f</char>
    <char>a</char>
    <char>u</char>
    <char>l</char>
    <char>t</char>
    <char>\n</char>
    <endElement>
        <namespaceURI/>
        <localName>Java</localName>
        <qualifiedName>Java</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>Java</localName>
        <qualifiedName>Java</qualifiedName>
        <attributes/>
    </startElement>
    <startElement>
        <namespaceURI/>
        <localName>one</localName>
        <qualifiedName>one</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>chapter</localName>
                <qualifiedName>chapter</qualifiedName>
                <value>Introduction</value>
                <type>CDATA</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>one</localName>
        <qualifiedName>one</qualifiedName>
    </endElement>
    <char>\n</char>
    <char>\s</char>
    <startElement>
        <namespaceURI/>
        <localName>three</localName>
        <qualifiedName>three</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>chapter</localName>
                <qualifiedName>chapter</qualifiedName>
                <value>JavaBeans</value>
                <type>CDATA</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>three</localName>
        <qualifiedName>three</qualifiedName>
    </endElement>
    <char>\n</char>
    <char>\s</char>
    <char>P</char>
    <char>o</char>
    <char>s</char>
    <char>i</char>
    <char>t</char>
    <char>i</char>
    <char>v</char>
    <char>e</char>
    <char>\s</char>
    <char>t</char>
    <char>e</char>
    <char>s</char>
    <char>t</char>
    <char>\n</char>
    <char>\s</char>
    <char>D</char>
    <char>e</char>
    <char>f</char>
    <char>a</char>
    <char>u</char>
    <char>l</char>
    <char>t</char>
    <char>D</char>
    <char>e</char>
    <char>c</char>
    <char>l</char>
    <char>\s</char>
    <char>a</char>
    <char>t</char>
    <char>t</char>
    <char>r</char>
    <char>i</char>
    <char>b</char>
    <char>u</char>
    <char>t</char>
    <char>e</char>
    <char>s</char>
    <char>\s</char>
    <char>v</char>
    <char>a</char>
    <char>l</char>
    <char>u</char>
    <char>e</char>
    <char>s</char>
    <char>\s</char>
    <char>I</char>
    <char>M</char>
    <char>P</char>
    <char>L</char>
    <char>I</char>
    <char>E</char>
    <char>D</char>
    <char>,</char>
    <char>\s</char>
    <char>R</char>
    <char>E</char>
    <char>Q</char>
    <char>U</char>
    <char>I</char>
    <char>R</char>
    <char>E</char>
    <char>D</char>
    <char>,</char>
    <char>\s</char>
    <char>F</char>
    <char>I</char>
    <char>X</char>
    <char>E</char>
    <char>D</char>
    <char>\s</char>
    <char>a</char>
    <char>n</char>
    <char>d</char>
    <char>\s</char>
    <char>d</char>
    <char>e</char>
    <char>f</char>
    <char>a</char>
    <char>u</char>
    <char>l</char>
    <char>t</char>
    <char>\n</char>
    <endElement>
        <namespaceURI/>
        <localName>Java</localName>
        <qualifiedName>Java</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>