W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > December 2009

[closed] Re: Subtlety about p:xquery

From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 17 Dec 2009 10:38:52 -0500
To: public-xml-processing-model-comments@w3.org
Message-ID: <m2my1hfw4z.fsf@nwalsh.com>
Florent Georges <fgeorges@fgeorges.org> writes:
>   Hi,
>   The CR says, about p:xquery:
>     If the document root element is c:query, the text descendants of
>     this element are considered the query.  Because XQuery is not
>     necessarily well-formed XML, any markup that occurs in the query
>     must be escaped.
>   Actually, that's not exactly true.  This is not because XQuery can
> be ill-formed that we have to escape markup, but because we define the
> query text as the string value of the c:query element, and markup is
> not part of the string value (indeed, that's because XQuery can be
> ill-formed that we decided to take the string value of c:query.)

Indeed. I removed "Because XQuery...be escaped." as irrelevant.

                                        Be seeing you,

Norman Walsh <ndw@nwalsh.com> | An expert is a person who has made all
http://nwalsh.com/            | the mistakes that can be made in a very
                              | narrow field.--Niels Bohr

Received on Thursday, 17 December 2009 16:08:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:28:27 UTC