[Bug 2611] xqueryx: trivial embedding (esp CDATA sections)

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2611





------- Additional Comments From mike@saxonica.com  2006-01-12 10:31 -------
It's seems to me that we're tying ourselves in knots in this section by trying
to tell people in full gory detail how to write a serializer. All we need to say is:

In the trivial embedding, the string of Unicode characters making up the text of
an XQuery query forms the string-value of a text node, which itself is the only
child of an xqx:xquery element.

Note: when such an element is serialized, special characters such as < and &
must be escaped in the usual way. For example...

(But frankly, this section on trivial embedding isn't worth the paper it isn't
written on. We don't need a standard for how to represent a string of Unicode
characters in an XML document. If an XML spec such as XML Schema or XSLT decides
it wants to embed XQuery, it will probably do it in a different way anyway.)

Received on Thursday, 12 January 2006 10:31:37 UTC