Test case ibm-valid-P52-ibm52v01.xml: oracle.xml.parser.v2.SAXParser Failed

Test case ibm-valid-P52-ibm52v01.xml: oracle.xml.parser.v2.SAXParser Failed

Tests all AttlistDecl and AttDef Patterns in P52 and P53

<?xml version="1.0"?>
<!DOCTYPE root [
  <!ELEMENT root ANY>
  <!ELEMENT a (#PCDATA)* >
  <!ELEMENT b (#PCDATA) >
  <!--* All AttlistDecl Patterns in P52 and P53 *-->
  <!ATTLIST a>
  <!ATTLIST a >
  <!ATTLIST b battr1 CDATA #REQUIRED >
  <!ATTLIST b battr2 CDATA #IMPLIED 
              battr3 CDATA #FIXED "fixedvalue" battr4 (abc|def) "abc" >
]>
<root>
  <a> Element type a </a>
  <b battr1 = "anyvalue" battr3="fixedvalue" battr4 ="def"> test P52 and P53 </b>
</root>
<!--* a valid test: tests P52 and P53 *-->
Expected resultActual result for oracle.xml.parser.v2.SAXParser
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
        <attributes/>
    </startElement>
    <char>\n</char>
    <char>\s</char>
    <char>\s</char>
    <startElement>
        <namespaceURI/>
        <localName>a</localName>
        <qualifiedName>a</qualifiedName>
        <attributes/>
    </startElement>
    <char>\s</char>
    <char>E</char>
    <char>l</char>
    <char>e</char>
    <char>m</char>
    <char>e</char>
    <char>n</char>
    <char>t</char>
    <char>\s</char>
    <char>t</char>
    <char>y</char>
    <char>p</char>
    <char>e</char>
    <char>\s</char>
    <char>a</char>
    <char>\s</char>
    <endElement>
        <namespaceURI/>
        <localName>a</localName>
        <qualifiedName>a</qualifiedName>
    </endElement>
    <char>\n</char>
    <char>\s</char>
    <char>\s</char>
    <startElement>
        <namespaceURI/>
        <localName>b</localName>
        <qualifiedName>b</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>battr1</localName>
                <qualifiedName>battr1</qualifiedName>
                <value>anyvalue</value>
                <type>CDATA</type>
            </attribute>
            <attribute>
                <namespaceURI/>
                <localName>battr3</localName>
                <qualifiedName>battr3</qualifiedName>
                <value>fixedvalue</value>
                <type>CDATA</type>
            </attribute>
            <attribute>
                <namespaceURI/>
                <localName>battr4</localName>
                <qualifiedName>battr4</qualifiedName>
                <value>def</value>
                <type>NMTOKEN</type>
            </attribute>
        </attributes>
    </startElement>
    <char>\s</char>
    <char>t</char>
    <char>e</char>
    <char>s</char>
    <char>t</char>
    <char>\s</char>
    <char>P</char>
    <char>5</char>
    <char>2</char>
    <char>\s</char>
    <char>a</char>
    <char>n</char>
    <char>d</char>
    <char>\s</char>
    <char>P</char>
    <char>5</char>
    <char>3</char>
    <char>\s</char>
    <endElement>
        <namespaceURI/>
        <localName>b</localName>
        <qualifiedName>b</qualifiedName>
    </endElement>
    <char>\n</char>
    <endElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
        <attributes/>
    </startElement>
    <ignorable>\n</ignorable>
    <ignorable>\s</ignorable>
    <ignorable>\s</ignorable>
    <startElement>
        <namespaceURI/>
        <localName>a</localName>
        <qualifiedName>a</qualifiedName>
        <attributes/>
    </startElement>
    <char>\s</char>
    <char>E</char>
    <char>l</char>
    <char>e</char>
    <char>m</char>
    <char>e</char>
    <char>n</char>
    <char>t</char>
    <char>\s</char>
    <char>t</char>
    <char>y</char>
    <char>p</char>
    <char>e</char>
    <char>\s</char>
    <char>a</char>
    <char>\s</char>
    <endElement>
        <namespaceURI/>
        <localName>a</localName>
        <qualifiedName>a</qualifiedName>
    </endElement>
    <ignorable>\n</ignorable>
    <ignorable>\s</ignorable>
    <ignorable>\s</ignorable>
    <startElement>
        <namespaceURI/>
        <localName>b</localName>
        <qualifiedName>b</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>battr1</localName>
                <qualifiedName>battr1</qualifiedName>
                <value>anyvalue</value>
                <type>CDATA</type>
            </attribute>
            <attribute>
                <namespaceURI/>
                <localName>battr3</localName>
                <qualifiedName>battr3</qualifiedName>
                <value>fixedvalue</value>
                <type>CDATA</type>
            </attribute>
            <attribute>
                <namespaceURI/>
                <localName>battr4</localName>
                <qualifiedName>battr4</qualifiedName>
                <value>def</value>
                <type/>
            </attribute>
        </attributes>
    </startElement>
    <char>\s</char>
    <char>t</char>
    <char>e</char>
    <char>s</char>
    <char>t</char>
    <char>\s</char>
    <char>P</char>
    <char>5</char>
    <char>2</char>
    <char>\s</char>
    <char>a</char>
    <char>n</char>
    <char>d</char>
    <char>\s</char>
    <char>P</char>
    <char>5</char>
    <char>3</char>
    <char>\s</char>
    <endElement>
        <namespaceURI/>
        <localName>b</localName>
        <qualifiedName>b</qualifiedName>
    </endElement>
    <ignorable>\n</ignorable>
    <endElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>