Tests DefaultDecl for P60 VC: Fixed Attribute Default. The value of the #FIXED attribute "chapter" is exactly the same as the default value.
<?xml version="1.0"?> <!-- validity test for Production 60--> <!DOCTYPE Java [ <!ELEMENT Java ANY> <!ELEMENT one EMPTY> <!ATTLIST one chapter CDATA #FIXED "Introduction"> ]> <Java> <one chapter="Introduction"></one> An attribute has a default value declared with the #FIXED keyword, and an instances of that attribute is given a value which is exactly the same as the default value in the declaration. </Java>
Expected result | Actual result for org.apache.crimson.parser.XMLReaderImpl |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>Java</localName> <qualifiedName>Java</qualifiedName> <attributes/> </startElement> <char>\n</char> <startElement> <namespaceURI/> <localName>one</localName> <qualifiedName>one</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>chapter</localName> <qualifiedName>chapter</qualifiedName> <value>Introduction</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>one</localName> <qualifiedName>one</qualifiedName> </endElement> <char>\n</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>h</char> <char>a</char> <char>s</char> <char>\s</char> <char>a</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>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>w</char> <char>i</char> <char>t</char> <char>h</char> <char>\s</char> <char>t</char> <char>h</char> <char>e</char> <char>\s</char> <char>#</char> <char>F</char> <char>I</char> <char>X</char> <char>E</char> <char>D</char> <char>\s</char> <char>k</char> <char>e</char> <char>y</char> <char>w</char> <char>o</char> <char>r</char> <char>d</char> <char>,</char> <char>\s</char> <char>\n</char> <char>a</char> <char>n</char> <char>d</char> <char>\s</char> <char>a</char> <char>n</char> <char>\s</char> <char>i</char> <char>n</char> <char>s</char> <char>t</char> <char>a</char> <char>n</char> <char>c</char> <char>e</char> <char>s</char> <char>\s</char> <char>o</char> <char>f</char> <char>\s</char> <char>t</char> <char>h</char> <char>a</char> <char>t</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>i</char> <char>s</char> <char>\s</char> <char>g</char> <char>i</char> <char>v</char> <char>e</char> <char>n</char> <char>\s</char> <char>a</char> <char>\s</char> <char>v</char> <char>a</char> <char>l</char> <char>u</char> <char>e</char> <char>\s</char> <char>w</char> <char>h</char> <char>i</char> <char>c</char> <char>h</char> <char>\s</char> <char>i</char> <char>s</char> <char>\s</char> <char>e</char> <char>x</char> <char>a</char> <char>c</char> <char>t</char> <char>l</char> <char>y</char> <char>\s</char> <char>\n</char> <char>t</char> <char>h</char> <char>e</char> <char>\s</char> <char>s</char> <char>a</char> <char>m</char> <char>e</char> <char>\s</char> <char>a</char> <char>s</char> <char>\s</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>i</char> <char>n</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>a</char> <char>t</char> <char>i</char> <char>o</char> <char>n</char> <char>.</char> <char>\s</char> <char>\n</char> <endElement> <namespaceURI/> <localName>Java</localName> <qualifiedName>Java</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>Java</localName> <qualifiedName>Java</qualifiedName> <attributes/> </startElement> <char>\n</char> <startElement> <namespaceURI/> <localName>one</localName> <qualifiedName>one</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>chapter</localName> <qualifiedName>chapter</qualifiedName> <value>Introduction</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>one</localName> <qualifiedName>one</qualifiedName> </endElement> <char>\n</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>h</char> <char>a</char> <char>s</char> <char>\s</char> <char>a</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>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>w</char> <char>i</char> <char>t</char> <char>h</char> <char>\s</char> <char>t</char> <char>h</char> <char>e</char> <char>\s</char> <char>#</char> <char>F</char> <char>I</char> <char>X</char> <char>E</char> <char>D</char> <char>\s</char> <char>k</char> <char>e</char> <char>y</char> <char>w</char> <char>o</char> <char>r</char> <char>d</char> <char>,</char> <char>\s</char> <char>\n</char> <char>a</char> <char>n</char> <char>d</char> <char>\s</char> <char>a</char> <char>n</char> <char>\s</char> <char>i</char> <char>n</char> <char>s</char> <char>t</char> <char>a</char> <char>n</char> <char>c</char> <char>e</char> <char>s</char> <char>\s</char> <char>o</char> <char>f</char> <char>\s</char> <char>t</char> <char>h</char> <char>a</char> <char>t</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>i</char> <char>s</char> <char>\s</char> <char>g</char> <char>i</char> <char>v</char> <char>e</char> <char>n</char> <char>\s</char> <char>a</char> <char>\s</char> <char>v</char> <char>a</char> <char>l</char> <char>u</char> <char>e</char> <char>\s</char> <char>w</char> <char>h</char> <char>i</char> <char>c</char> <char>h</char> <char>\s</char> <char>i</char> <char>s</char> <char>\s</char> <char>e</char> <char>x</char> <char>a</char> <char>c</char> <char>t</char> <char>l</char> <char>y</char> <char>\s</char> <char>\n</char> <char>t</char> <char>h</char> <char>e</char> <char>\s</char> <char>s</char> <char>a</char> <char>m</char> <char>e</char> <char>\s</char> <char>a</char> <char>s</char> <char>\s</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>i</char> <char>n</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>a</char> <char>t</char> <char>i</char> <char>o</char> <char>n</char> <char>.</char> <char>\s</char> <char>\n</char> <endElement> <namespaceURI/> <localName>Java</localName> <qualifiedName>Java</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |