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

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


jim.melton@acm.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From jim.melton@acm.org  2006-01-11 17:59 -------
The XML Query Working Group has considered your comment and agrees with the
problem that you described.

A solution has been developed and approved by the WG:

(1) Replace the fourth paragraph ("If the XQuery contains...") of section 5, 
A Trivial Embedding of XQuery, with:

****
XQuery expressions are, for the purposes of this trivial embedding, treated 
as literal text. Therefore, if the XQuery contains characters that are 
prohibited in XML text (specifically < and &), they must be "escaped" as 
character entity references (&lt; and &amp;, respectively) or as numeric 
character references (for example, &#x3C; and &#x26;, respectively), or 
they must be enclosed in a CDATA section (for example, <![CDATA[<]] or 
<![CDATA[&]]).  Note that this includes the leading "<" of a CDATA section 
that appears in the original XQuery expression.  In addition, because the 
sequence of characters "]]>" is always prohibited within a CDATA section, 
it is recommended that instances of > in the original XQuery always be 
"escaped" (for example, as &gt;, &#x3E;, or <![CDATA[>]]).
****

(2) In addition, in the sixth paragraph ("The following two more..."), delete 
the entire sentence that reads "CDATA sections within an XQuery expression 
are embedded in the same form in which they appear in any XML document."

This is the official WG response. 

Please let us know if you agree with this resolution of your issue, by adding a
comment to the issue record and changing the Status of the issue to Closed. Or,
if you do not agree with this resolution, please add a comment explaining why.
If you wish to appeal the WG's decision to the Director, then also change the
Status of the record to Reopened. If you wish to record your dissent, but do not
wish to appeal the decision to the Director, then change the Status of the
record to Closed. If we do not hear from you in the next two weeks, we will
assume you agree with the WG decision.

Received on Wednesday, 11 January 2006 17:59:45 UTC