Tests DefaultDecl for P60 VC: Attribute Default Legal. The default value specified for the attribute "attr" meets the lexical constraints of the declared attribute type.
<?xml version="1.0"?> <!-- validity test for Production 60--> <!DOCTYPE test [ <!ELEMENT test ANY> <!ELEMENT a EMPTY> <!ELEMENT b EMPTY> <!ELEMENT attr EMPTY> <!ELEMENT nametoken EMPTY> <!ATTLIST attr value (a|b) "a"> <!ATTLIST nametoken namevalue NMTOKEN "hello"> ]> <test> The default value specified for an attribute meets the lexical constraints of the declared attribute type. </test>
Expected result | Actual 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>m</char> <char>e</char> <char>e</char> <char>t</char> <char>s</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>m</char> <char>e</char> <char>e</char> <char>t</char> <char>s</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> |