qexo-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qexo-general] <![CDATA[]]> constructor support


From: Per Bothner
Subject: Re: [Qexo-general] <![CDATA[]]> constructor support
Date: Fri, 19 Mar 2004 20:05:46 -0800
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6) Gecko/20040113

Stefano Santoro wrote:

I am trying to build a document that includes a <![CDATA[]]> section,
but I get the following using qexo:

(: 195 :) <foo><![CDATA[Yo]]></foo>
<stdin>:195:7: missing NameSpec
(: 196 :) <![CDATA[Yo]]>
<stdin>:196:2: missing NameSpec
(: 197 :)
Any suggestions on how I may include a CDATA section?

Qexo doesn't support a CDATA section, and if it did that is
no guarantee that it would appear as such in the output, since
there is no CADATA sections in the XQuery date model - they're
just text nodes.  (Though an implementation is allowed to
remember that some text was created using CDATA and serialize
it the same way.  Maybe Qexo will do this in the future.)

For now, use the unescaped-data function:

<foo>{unescaped-data("<![CDATA[Yo]]>")}</foo>
--
        --Per Bothner
address@hidden   http://per.bothner.com/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]