Test case ibm-not-wf-p28a-ibm28an01.xml: gnu.xml.aelfred2.XmlReader Failed

Test case ibm-not-wf-p28a-ibm28an01.xml: gnu.xml.aelfred2.XmlReader Failed

This test violates WFC:PE Between Declarations in Production 28a. The last character of a markup declaration is not contained in the same parameter-entity text replacement.

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE animal SYSTEM "ibm28an01.dtd" [
   <!ELEMENT animal (cat|tiger|leopard)+>
   <!NOTATION animal_class SYSTEM "ibm29v01.txt">
   <!ELEMENT cat ANY>
   <!ENTITY forcat "This is a small cat">
   <!ELEMENT tiger (#PCDATA)>
   <!ELEMENT small EMPTY>
   <!ELEMENT big EMPTY>
   <!ATTLIST tiger color CDATA #REQUIRED>
   <?sound "This is a PI" ?>
   <!-- This is a comment -->
]>
<animal>
   <cat>&forcat;</cat>
   <tiger color="white">This is a white tiger in Mirage!!</tiger>
   <cat/>
   <leopard>
      <small/>
      <big/>
   </leopard>
</animal>
Expected resultActual result for gnu.xml.aelfred2.XmlReader
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <processingInstruction>
        <target>sound</target>
        <data>"This\sis\sa\sPI"\s</data>
    </processingInstruction>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/not-wf/p28a/ibm28an01.dtd</systemID>
    </resolveEntity>
    <fatalError/>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <processingInstruction>
        <target>sound</target>
        <data>"This\sis\sa\sPI"\s</data>
    </processingInstruction>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/not-wf/p28a/ibm28an01.dtd</systemID>
    </resolveEntity>
    <endDocument/>
    <bug reason="Parser should only throw SAXExceptions" type="java.lang.ArrayIndexOutOfBoundsException">0 &gt;= 0</bug>
</ConformanceResults>