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 17:27:57 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1GTM9V-0005La-Fg@wiggum.w3.org>

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





------- Comment #23 from maxim.orgiyan@oracle.com  2006-09-29 17:27 -------
(In reply to comment #21)
> (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.
> 
> >>> I see. Well, the convertor is not "sometimes double escaping and 
  >>> sometimes    not".
  >>> It is always replacing "&" with "&amp;" (which, I agree,
  >>> is likely not correct
  >>> given the common-sense interpretation of how entity/character refs
  >>> should be resolved).
  >>>
  >>> As far as the query - that's a bug.. I copied the text
  >>> from the wrong query yesterday. Obviously the "&" before "lt;" is 
  >>> "&amp;" in the current encoding, because all "&" are replaced with
"&amp":
  >>>
  >>> &lt;?&amp;-&amp;lt;&amp;#x20;&gt;&lt;![CDATA[x]]&gt;
Received on Friday, 29 September 2006 17:27:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:15 UTC