W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2006

[Bug 2441] xqx: character references

From: <bugzilla@wiggum.w3.org>
Date: Fri, 29 Sep 2006 10:44:47 +0000
To: public-qt-comments@w3.org
Message-Id: <E1GTFrL-0003qp-Hw@wiggum.w3.org>


------- Comment #21 from davidc@nag.co.uk  2006-09-29 10:44 -------
(In reply to comment #19)

> David, it looks like in certain cases the XQueryX implementation
> should escape &amp;.
> ..
> So, it doesn't seem to be a blind replace of &amp with & as suggested above

I'd assumed that your convertor was always double escaping and so removing one
level would fix it (it certainly fixes most) if your convertor is sometimes
double escaping and sometimes not, them clearly you only need to remove the
double escaping at those places where it was added.

> For example:
> <!--<?&-&lt;&#x20;><![CDATA[x]]>-->
> Is currently correctly encoded as:
>  <xqx:value>&lt;?&amp;-&lt;&amp;#x20;&gt;&lt;![CDATA[x]]&gt;</xqx:value>

that encoding is incorrect.

Given the XQuery


xq2xqx produces

<xqx:module xmlns:xqx="http://www.w3.org/2005/XQueryX">

which when processed with the standard stylesheet produces


which is an equivalent query, both produce the XML


If however the xqx:value-of element is replaced by the element that you
suggested, then the standard xqueryx stylesheet produces


which is not an equivalent query, when executed it produces

which is an entirely different XML comment.

Received on Friday, 29 September 2006 10:44:58 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:30 UTC