Tests DefaultDecl against WFC of P60. The text replacement of the entity "avalue" contains the "less than" character in the DefaultDecl in the AttDef in the AttlistDecl in the DTD.
<?xml version="1.0"?> <!-- WFC test for Production 60--> <!DOCTYPE Java [ <!ELEMENT Java ANY> <!ELEMENT one EMPTY> <!ENTITY avalue "<Introduction"> <!ATTLIST one chapter CDATA #REQUIRED> ]> <Java> <one chapter="&avalue;"></one> Negative test. The replacement text of any entity referred to directly or indirectly in an attribute value contains a less than character </Java>
Expected result | Actual result for com.bluecast.xml.Piccolo |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>Java</localName> <qualifiedName>Java</qualifiedName> <attributes/> </startElement> <char>\n</char> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>Java</localName> <qualifiedName>Java</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>attr1</localName> <qualifiedName>attr1</qualifiedName> <value>any</value> <type>CDATA</type> </attribute> </attributes> </startElement> <char>\n</char> <fatalError/> <endDocument/> </ConformanceResults> |