Test case ibm-invalid-P60-ibm60i02.xml: org.apache.crimson.parser.XMLReaderImpl Passed

Test case ibm-invalid-P60-ibm60i02.xml: org.apache.crimson.parser.XMLReaderImpl Passed

Tests invalid DefaultDecl which is against P60 VC: Fixed Attribute Default.. The attribute "chapter" for the element "one" is declared as #FIXED with the given value "Introduction" in the DefaultDecl in the AttlistDecl, but the value of a instance of this attribute is assigned to "JavaBeans".

<?xml  version="1.0"?>
<!-- validity test for Production 60-->
<!DOCTYPE Java 
 [
 <!ELEMENT Java ANY>
 <!ELEMENT one EMPTY>
 <!ATTLIST one chapter CDATA #FIXED "Introduction">
  ]>
<Java>
<one chapter="JavaBeans"></one>
Negative Test
An attribute has a default value declared with the #FIXED keyword, 
and an instances of that attribute is given a value which is not 
the same as the default value in the declaration. 
</Java>
Expected resultActual result for org.apache.crimson.parser.XMLReaderImpl
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>Java</localName>
        <qualifiedName>Java</qualifiedName>
        <attributes/>
    </startElement>
    <char>\n</char>
    <startElement>
        <namespaceURI/>
        <localName>one</localName>
        <qualifiedName>one</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>chapter</localName>
                <qualifiedName>chapter</qualifiedName>
                <value>JavaBeans</value>
                <type>CDATA</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>one</localName>
        <qualifiedName>one</qualifiedName>
    </endElement>
    <char>\n</char>
    <char>N</char>
    <char>e</char>
    <char>g</char>
    <char>a</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>A</char>
    <char>n</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>h</char>
    <char>a</char>
    <char>s</char>
    <char>\s</char>
    <char>a</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>\s</char>
    <char>v</char>
    <char>a</char>
    <char>l</char>
    <char>u</char>
    <char>e</char>
    <char>\s</char>
    <char>d</char>
    <char>e</char>
    <char>c</char>
    <char>l</char>
    <char>a</char>
    <char>r</char>
    <char>e</char>
    <char>d</char>
    <char>\s</char>
    <char>w</char>
    <char>i</char>
    <char>t</char>
    <char>h</char>
    <char>\s</char>
    <char>t</char>
    <char>h</char>
    <char>e</char>
    <char>\s</char>
    <char>#</char>
    <char>F</char>
    <char>I</char>
    <char>X</char>
    <char>E</char>
    <char>D</char>
    <char>\s</char>
    <char>k</char>
    <char>e</char>
    <char>y</char>
    <char>w</char>
    <char>o</char>
    <char>r</char>
    <char>d</char>
    <char>,</char>
    <char>\s</char>
    <char>\n</char>
    <char>a</char>
    <char>n</char>
    <char>d</char>
    <char>\s</char>
    <char>a</char>
    <char>n</char>
    <char>\s</char>
    <char>i</char>
    <char>n</char>
    <char>s</char>
    <char>t</char>
    <char>a</char>
    <char>n</char>
    <char>c</char>
    <char>e</char>
    <char>s</char>
    <char>\s</char>
    <char>o</char>
    <char>f</char>
    <char>\s</char>
    <char>t</char>
    <char>h</char>
    <char>a</char>
    <char>t</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>i</char>
    <char>s</char>
    <char>\s</char>
    <char>g</char>
    <char>i</char>
    <char>v</char>
    <char>e</char>
    <char>n</char>
    <char>\s</char>
    <char>a</char>
    <char>\s</char>
    <char>v</char>
    <char>a</char>
    <char>l</char>
    <char>u</char>
    <char>e</char>
    <char>\s</char>
    <char>w</char>
    <char>h</char>
    <char>i</char>
    <char>c</char>
    <char>h</char>
    <char>\s</char>
    <char>i</char>
    <char>s</char>
    <char>\s</char>
    <char>n</char>
    <char>o</char>
    <char>t</char>
    <char>\s</char>
    <char>\n</char>
    <char>t</char>
    <char>h</char>
    <char>e</char>
    <char>\s</char>
    <char>s</char>
    <char>a</char>
    <char>m</char>
    <char>e</char>
    <char>\s</char>
    <char>a</char>
    <char>s</char>
    <char>\s</char>
    <char>t</char>
    <char>h</char>
    <char>e</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>\s</char>
    <char>v</char>
    <char>a</char>
    <char>l</char>
    <char>u</char>
    <char>e</char>
    <char>\s</char>
    <char>i</char>
    <char>n</char>
    <char>\s</char>
    <char>t</char>
    <char>h</char>
    <char>e</char>
    <char>\s</char>
    <char>d</char>
    <char>e</char>
    <char>c</char>
    <char>l</char>
    <char>a</char>
    <char>r</char>
    <char>a</char>
    <char>t</char>
    <char>i</char>
    <char>o</char>
    <char>n</char>
    <char>.</char>
    <char>\s</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>
    <char>\n</char>
    <startElement>
        <namespaceURI/>
        <localName>one</localName>
        <qualifiedName>one</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>chapter</localName>
                <qualifiedName>chapter</qualifiedName>
                <value>JavaBeans</value>
                <type>CDATA</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>one</localName>
        <qualifiedName>one</qualifiedName>
    </endElement>
    <char>\n</char>
    <char>N</char>
    <char>e</char>
    <char>g</char>
    <char>a</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>A</char>
    <char>n</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>h</char>
    <char>a</char>
    <char>s</char>
    <char>\s</char>
    <char>a</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>\s</char>
    <char>v</char>
    <char>a</char>
    <char>l</char>
    <char>u</char>
    <char>e</char>
    <char>\s</char>
    <char>d</char>
    <char>e</char>
    <char>c</char>
    <char>l</char>
    <char>a</char>
    <char>r</char>
    <char>e</char>
    <char>d</char>
    <char>\s</char>
    <char>w</char>
    <char>i</char>
    <char>t</char>
    <char>h</char>
    <char>\s</char>
    <char>t</char>
    <char>h</char>
    <char>e</char>
    <char>\s</char>
    <char>#</char>
    <char>F</char>
    <char>I</char>
    <char>X</char>
    <char>E</char>
    <char>D</char>
    <char>\s</char>
    <char>k</char>
    <char>e</char>
    <char>y</char>
    <char>w</char>
    <char>o</char>
    <char>r</char>
    <char>d</char>
    <char>,</char>
    <char>\s</char>
    <char>\n</char>
    <char>a</char>
    <char>n</char>
    <char>d</char>
    <char>\s</char>
    <char>a</char>
    <char>n</char>
    <char>\s</char>
    <char>i</char>
    <char>n</char>
    <char>s</char>
    <char>t</char>
    <char>a</char>
    <char>n</char>
    <char>c</char>
    <char>e</char>
    <char>s</char>
    <char>\s</char>
    <char>o</char>
    <char>f</char>
    <char>\s</char>
    <char>t</char>
    <char>h</char>
    <char>a</char>
    <char>t</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>i</char>
    <char>s</char>
    <char>\s</char>
    <char>g</char>
    <char>i</char>
    <char>v</char>
    <char>e</char>
    <char>n</char>
    <char>\s</char>
    <char>a</char>
    <char>\s</char>
    <char>v</char>
    <char>a</char>
    <char>l</char>
    <char>u</char>
    <char>e</char>
    <char>\s</char>
    <char>w</char>
    <char>h</char>
    <char>i</char>
    <char>c</char>
    <char>h</char>
    <char>\s</char>
    <char>i</char>
    <char>s</char>
    <char>\s</char>
    <char>n</char>
    <char>o</char>
    <char>t</char>
    <char>\s</char>
    <char>\n</char>
    <char>t</char>
    <char>h</char>
    <char>e</char>
    <char>\s</char>
    <char>s</char>
    <char>a</char>
    <char>m</char>
    <char>e</char>
    <char>\s</char>
    <char>a</char>
    <char>s</char>
    <char>\s</char>
    <char>t</char>
    <char>h</char>
    <char>e</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>\s</char>
    <char>v</char>
    <char>a</char>
    <char>l</char>
    <char>u</char>
    <char>e</char>
    <char>\s</char>
    <char>i</char>
    <char>n</char>
    <char>\s</char>
    <char>t</char>
    <char>h</char>
    <char>e</char>
    <char>\s</char>
    <char>d</char>
    <char>e</char>
    <char>c</char>
    <char>l</char>
    <char>a</char>
    <char>r</char>
    <char>a</char>
    <char>t</char>
    <char>i</char>
    <char>o</char>
    <char>n</char>
    <char>.</char>
    <char>\s</char>
    <char>\n</char>
    <endElement>
        <namespaceURI/>
        <localName>Java</localName>
        <qualifiedName>Java</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>