[closed] Re: Subtlety about p:xquery

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,
                                          norm

-- 
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