|
From: | Per Bothner |
Subject: | [Qexo-general] direct cdata, comment, and pi constructors in CVS Qexo |
Date: | Sat, 29 May 2004 19:51:56 -0700 |
User-agent: | Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7) Gecko/20040514 |
<a> <![CDATA[a CDATA section]]> <!--a comment--> <?xql a processing instruction?> </a>Internally, the data model has been extended/fixed to support these node types, and the XML parser (as invoked by the doc function) passes them through, and the XML printer/serializer prints them.
Note that there is no such thing as "CDATA nodes" in the XQuery data model, which doesn't distinguish between plain text content and CDATA. So <a>foo<![CDATA[xx]]>bar</a> contains just a single text node - but Qexo is smart enough to remember that the "xx" was part of a CDATA section.
There is still no "magic" to remember character references; they do get turned into their correspinding Unicode character by the XML parser. But it wouldn't be difficult to change that. If so we, can change the default XML printer behavior to only use character references for text that was created using character references, fixing a problem for people who use non-English letters. No promises, however, if/when that get done.
-- --Per Bothner address@hidden http://per.bothner.com/
[Prev in Thread] | Current Thread | [Next in Thread] |