Test case inv-not-sa01: org.apache.crimson.parser.XMLReaderImpl Failed

Test case inv-not-sa01: org.apache.crimson.parser.XMLReaderImpl Failed

Tests the Standalone Document Declaration VC, ensuring that optional whitespace causes a validity error.

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

<!DOCTYPE root SYSTEM "../valid/sa.dtd">
    
<root>
    <child>
    The whitespace before and after this element keeps
    this from being standalone.
    </child>
</root>
Expected resultActual result for org.apache.crimson.parser.XMLReaderImpl
<?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>root</localName>
        <qualifiedName>root</qualifiedName>
        <attributes/>
    </startElement>
    <ignorable>\n</ignorable>
    <ignorable>\s</ignorable>
    <ignorable>\s</ignorable>
    <ignorable>\s</ignorable>
    <ignorable>\s</ignorable>
    <startElement>
        <namespaceURI/>
        <localName>child</localName>
        <qualifiedName>child</qualifiedName>
        <attributes/>
    </startElement>
    <char>\n</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>T</char>
    <char>h</char>
    <char>e</char>
    <char>\s</char>
    <char>w</char>
    <char>h</char>
    <char>i</char>
    <char>t</char>
    <char>e</char>
    <char>s</char>
    <char>p</char>
    <char>a</char>
    <char>c</char>
    <char>e</char>
    <char>\s</char>
    <char>b</char>
    <char>e</char>
    <char>f</char>
    <char>o</char>
    <char>r</char>
    <char>e</char>
    <char>\s</char>
    <char>a</char>
    <char>n</char>
    <char>d</char>
    <char>\s</char>
    <char>a</char>
    <char>f</char>
    <char>t</char>
    <char>e</char>
    <char>r</char>
    <char>\s</char>
    <char>t</char>
    <char>h</char>
    <char>i</char>
    <char>s</char>
    <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>k</char>
    <char>e</char>
    <char>e</char>
    <char>p</char>
    <char>s</char>
    <char>\n</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>t</char>
    <char>h</char>
    <char>i</char>
    <char>s</char>
    <char>\s</char>
    <char>f</char>
    <char>r</char>
    <char>o</char>
    <char>m</char>
    <char>\s</char>
    <char>b</char>
    <char>e</char>
    <char>i</char>
    <char>n</char>
    <char>g</char>
    <char>\s</char>
    <char>s</char>
    <char>t</char>
    <char>a</char>
    <char>n</char>
    <char>d</char>
    <char>a</char>
    <char>l</char>
    <char>o</char>
    <char>n</char>
    <char>e</char>
    <char>.</char>
    <char>\n</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <endElement>
        <namespaceURI/>
        <localName>child</localName>
        <qualifiedName>child</qualifiedName>
    </endElement>
    <ignorable>\n</ignorable>
    <endElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/sun/invalid/../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>root</localName>
        <qualifiedName>root</qualifiedName>
        <attributes/>
    </startElement>
    <ignorable>\n</ignorable>
    <ignorable>\s</ignorable>
    <ignorable>\s</ignorable>
    <ignorable>\s</ignorable>
    <ignorable>\s</ignorable>
    <startElement>
        <namespaceURI/>
        <localName>child</localName>
        <qualifiedName>child</qualifiedName>
        <attributes/>
    </startElement>
    <char>\n</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>T</char>
    <char>h</char>
    <char>e</char>
    <char>\s</char>
    <char>w</char>
    <char>h</char>
    <char>i</char>
    <char>t</char>
    <char>e</char>
    <char>s</char>
    <char>p</char>
    <char>a</char>
    <char>c</char>
    <char>e</char>
    <char>\s</char>
    <char>b</char>
    <char>e</char>
    <char>f</char>
    <char>o</char>
    <char>r</char>
    <char>e</char>
    <char>\s</char>
    <char>a</char>
    <char>n</char>
    <char>d</char>
    <char>\s</char>
    <char>a</char>
    <char>f</char>
    <char>t</char>
    <char>e</char>
    <char>r</char>
    <char>\s</char>
    <char>t</char>
    <char>h</char>
    <char>i</char>
    <char>s</char>
    <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>k</char>
    <char>e</char>
    <char>e</char>
    <char>p</char>
    <char>s</char>
    <char>\n</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>t</char>
    <char>h</char>
    <char>i</char>
    <char>s</char>
    <char>\s</char>
    <char>f</char>
    <char>r</char>
    <char>o</char>
    <char>m</char>
    <char>\s</char>
    <char>b</char>
    <char>e</char>
    <char>i</char>
    <char>n</char>
    <char>g</char>
    <char>\s</char>
    <char>s</char>
    <char>t</char>
    <char>a</char>
    <char>n</char>
    <char>d</char>
    <char>a</char>
    <char>l</char>
    <char>o</char>
    <char>n</char>
    <char>e</char>
    <char>.</char>
    <char>\n</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <endElement>
        <namespaceURI/>
        <localName>child</localName>
        <qualifiedName>child</qualifiedName>
    </endElement>
    <ignorable>\n</ignorable>
    <endElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>