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

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





------- Additional Comments From davidc@nag.co.uk  2006-01-12 10:11 -------
 In addition, because the 
  sequence of characters "]]>" is always prohibited within a CDATA section, 

This should say "within XML element content" not "within a CDATA section". ]]>
is forbidden from all element content not just inside a CDATA section.

so an Xquery of
<a x="]]>" />

can't be encoded as

<xqx:xqueryx>&lt;a x="]]>" /></xqx:xqueryx>

you have to quote the > (or the ] ) as well.

David

Received on Thursday, 12 January 2006 10:11:12 UTC