Tests AttTypes with StringType in P55.
<?xml version="1.0"?> <!-- test for Production 54--> <!DOCTYPE AttrType [ <!ELEMENT AttrType ANY> <!ELEMENT a (#PCDATA)> <!ATTLIST a att CDATA #IMPLIED> ]> <AttrType> <a att= 'hello world'> </a> </AttrType>
| Expected result | Actual result for com.bluecast.xml.Piccolo |
|---|---|
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
<startDocument/>
<startElement>
<namespaceURI/>
<localName>AttrType</localName>
<qualifiedName>AttrType</qualifiedName>
<attributes/>
</startElement>
<char>\n</char>
<startElement>
<namespaceURI/>
<localName>a</localName>
<qualifiedName>a</qualifiedName>
<attributes>
<attribute>
<namespaceURI/>
<localName>att</localName>
<qualifiedName>att</qualifiedName>
<value>hello\sworld</value>
<type>CDATA</type>
</attribute>
</attributes>
</startElement>
<char>\n</char>
<endElement>
<namespaceURI/>
<localName>a</localName>
<qualifiedName>a</qualifiedName>
</endElement>
<char>\n</char>
<endElement>
<namespaceURI/>
<localName>AttrType</localName>
<qualifiedName>AttrType</qualifiedName>
</endElement>
<endDocument/>
</ConformanceResults>
| <?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
<startDocument/>
<startElement>
<namespaceURI/>
<localName>AttrType</localName>
<qualifiedName>AttrType</qualifiedName>
<attributes/>
</startElement>
<char>\n</char>
<startElement>
<namespaceURI/>
<localName>a</localName>
<qualifiedName>a</qualifiedName>
<attributes>
<attribute>
<namespaceURI/>
<localName>att</localName>
<qualifiedName>att</qualifiedName>
<value>hello\sworld</value>
<type>CDATA</type>
</attribute>
</attributes>
</startElement>
<char>\n</char>
<endElement>
<namespaceURI/>
<localName>a</localName>
<qualifiedName>a</qualifiedName>
</endElement>
<char>\n</char>
<endElement>
<namespaceURI/>
<localName>AttrType</localName>
<qualifiedName>AttrType</qualifiedName>
</endElement>
<endDocument/>
</ConformanceResults>
|