Subtlety about p:xquery

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

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/

Received on Tuesday, 27 October 2009 12:13:50 UTC