Test case ibm-invalid-P60-ibm60i04.xml: com.jclark.xml.sax.SAX2Driver Passed

Test case ibm-invalid-P60-ibm60i04.xml: com.jclark.xml.sax.SAX2Driver Passed

Tests invalid DefaultDecl which is against P60 VC: Attribute Default Legal. The declared default value "@#$" is not legal for the type NMTOKEN the AttDef in the AttlistDecl.

<?xml  version="1.0"?>
<!-- validity test for Production 60-->
<!DOCTYPE test
 [
 <!ELEMENT test ANY>
 <!ELEMENT a EMPTY>
 <!ELEMENT nametoken EMPTY>
 <!ATTLIST nametoken namevalue NMTOKEN "@#$"> 
  ]>
<test>
The default value specified for an attribute does not meet the 
lexical constraints of the declared attribute type.
</test>
Expected resultActual result for com.jclark.xml.sax.SAX2Driver
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>test</localName>
        <qualifiedName>test</qualifiedName>
        <attributes/>
    </startElement>
    <char>\n</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>s</char>
    <char>p</char>
    <char>e</char>
    <char>c</char>
    <char>i</char>
    <char>f</char>
    <char>i</char>
    <char>e</char>
    <char>d</char>
    <char>\s</char>
    <char>f</char>
    <char>o</char>
    <char>r</char>
    <char>\s</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>d</char>
    <char>o</char>
    <char>e</char>
    <char>s</char>
    <char>\s</char>
    <char>n</char>
    <char>o</char>
    <char>t</char>
    <char>\s</char>
    <char>m</char>
    <char>e</char>
    <char>e</char>
    <char>t</char>
    <char>\s</char>
    <char>t</char>
    <char>h</char>
    <char>e</char>
    <char>\s</char>
    <char>\n</char>
    <char>l</char>
    <char>e</char>
    <char>x</char>
    <char>i</char>
    <char>c</char>
    <char>a</char>
    <char>l</char>
    <char>\s</char>
    <char>c</char>
    <char>o</char>
    <char>n</char>
    <char>s</char>
    <char>t</char>
    <char>r</char>
    <char>a</char>
    <char>i</char>
    <char>n</char>
    <char>t</char>
    <char>s</char>
    <char>\s</char>
    <char>o</char>
    <char>f</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>e</char>
    <char>d</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>t</char>
    <char>y</char>
    <char>p</char>
    <char>e</char>
    <char>.</char>
    <char>\n</char>
    <endElement>
        <namespaceURI/>
        <localName>test</localName>
        <qualifiedName>test</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>test</localName>
        <qualifiedName>test</qualifiedName>
        <attributes/>
    </startElement>
    <char>\n</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>s</char>
    <char>p</char>
    <char>e</char>
    <char>c</char>
    <char>i</char>
    <char>f</char>
    <char>i</char>
    <char>e</char>
    <char>d</char>
    <char>\s</char>
    <char>f</char>
    <char>o</char>
    <char>r</char>
    <char>\s</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>d</char>
    <char>o</char>
    <char>e</char>
    <char>s</char>
    <char>\s</char>
    <char>n</char>
    <char>o</char>
    <char>t</char>
    <char>\s</char>
    <char>m</char>
    <char>e</char>
    <char>e</char>
    <char>t</char>
    <char>\s</char>
    <char>t</char>
    <char>h</char>
    <char>e</char>
    <char>\s</char>
    <char>\n</char>
    <char>l</char>
    <char>e</char>
    <char>x</char>
    <char>i</char>
    <char>c</char>
    <char>a</char>
    <char>l</char>
    <char>\s</char>
    <char>c</char>
    <char>o</char>
    <char>n</char>
    <char>s</char>
    <char>t</char>
    <char>r</char>
    <char>a</char>
    <char>i</char>
    <char>n</char>
    <char>t</char>
    <char>s</char>
    <char>\s</char>
    <char>o</char>
    <char>f</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>e</char>
    <char>d</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>t</char>
    <char>y</char>
    <char>p</char>
    <char>e</char>
    <char>.</char>
    <char>\n</char>
    <endElement>
        <namespaceURI/>
        <localName>test</localName>
        <qualifiedName>test</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>