Tests DefaultDecl with a required field missing. The white space is missing between the key word "#FIXED" and the attribute value in the DefaultDecl in the AttDef in the AttlistDecl in the DTD.
<?xml version="1.0"?> <!-- syntax test for Production 60--> <!DOCTYPE Java [ <!ELEMENT Java ANY> <!ELEMENT one EMPTY> <!ATTLIST one chapter CDATA #FIXED"Introduction"> ]> <Java> <one chapter="Introduction"></one> Negative test. Missing required field(#FIXED should have a space before value) </Java>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>Java</localName> <qualifiedName>Java</qualifiedName> <attributes/> </startElement> <ignorable>\n</ignorable> <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>N</char> <char>e</char> <char>g</char> <char>a</char> <char>t</char> <char>i</char> <char>v</char> <char>e</char> <char>\s</char> <char>t</char> <char>e</char> <char>s</char> <char>t</char> <char>.</char> <char>\s</char> <char>M</char> <char>i</char> <char>s</char> <char>s</char> <char>i</char> <char>n</char> <char>g</char> <char>\s</char> <char>r</char> <char>e</char> <char>q</char> <char>u</char> <char>i</char> <char>r</char> <char>e</char> <char>d</char> <char>\s</char> <char>f</char> <char>i</char> <char>e</char> <char>l</char> <char>d</char> <char>(</char> <char>#</char> <char>F</char> <char>I</char> <char>X</char> <char>E</char> <char>D</char> <char>\s</char> <char>s</char> <char>h</char> <char>o</char> <char>u</char> <char>l</char> <char>d</char> <char>\s</char> <char>h</char> <char>a</char> <char>v</char> <char>e</char> <char>\s</char> <char>a</char> <char>\s</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>v</char> <char>a</char> <char>l</char> <char>u</char> <char>e</char> <char>)</char> <char>\n</char> <endElement> <namespaceURI/> <localName>Java</localName> <qualifiedName>Java</qualifiedName> </endElement> <fatalError/> </ConformanceResults> |