Test case inv-not-sa13: gnu.xml.aelfred2.XmlReader Failed

Test case inv-not-sa13: gnu.xml.aelfred2.XmlReader Failed

Tests the Standalone Document Declaration VC, ensuring that an ENTITIES attribute needing normalization causes a validity error.

<?xml version='1.0' standalone='yes'?>

<!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [
    <!--
	ENTITIES needs normalization
    -->
]>

<attributes
    token =	"b"
    entities =	"
    unparsed-1
    
    unparsed-2
		  "
    />
Expected resultActual result for gnu.xml.aelfred2.XmlReader
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/sun/valid/sa.dtd</systemID>
    </resolveEntity>
    <notation>
        <name>bar</name>
        <systemID>file:/dev/tty</systemID>
    </notation>
    <notation>
        <name>foo</name>
        <publicID>-//public id//foo</publicID>
        <systemID>file:/dev/null</systemID>
    </notation>
    <notation>
        <name>nonce</name>
        <systemID>file:/dev/null</systemID>
    </notation>
    <unparsedEntity>
        <name>unparsed-1</name>
        <publicID>-//some public//ID</publicID>
        <systemID>file:/dev/console</systemID>
        <notation>nonce</notation>
    </unparsedEntity>
    <unparsedEntity>
        <name>unparsed-2</name>
        <systemID>scheme://host/data</systemID>
        <notation>foo</notation>
    </unparsedEntity>
    <startElement>
        <namespaceURI/>
        <localName>attributes</localName>
        <qualifiedName>attributes</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>entities</localName>
                <qualifiedName>entities</qualifiedName>
                <value>unparsed-1\sunparsed-2</value>
                <type>ENTITIES</type>
            </attribute>
            <attribute>
                <namespaceURI/>
                <localName>token</localName>
                <qualifiedName>token</qualifiedName>
                <value>b</value>
                <type>NMTOKEN</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>attributes</localName>
        <qualifiedName>attributes</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/sun/valid/sa.dtd</systemID>
    </resolveEntity>
    <endDocument/>
    <bug reason="Parser should only throw SAXExceptions" type="java.lang.ArrayIndexOutOfBoundsException">2 &gt;= 2</bug>
</ConformanceResults>