W3C home > Mailing lists > Public > public-qt-comments@w3.org > October 2009

[Bug 7163] [XQuery] String literals and predefined entity references

From: <bugzilla@wiggum.w3.org>
Date: Tue, 06 Oct 2009 11:07:33 +0000
To: public-qt-comments@w3.org
Message-Id: <E1Mv7tF-0004rJ-57@wiggum.w3.org>

--- Comment #8 from David Carlisle <davidc@nag.co.uk>  2009-10-06 11:07:32 ---
(In reply to comment #6)

> * Because XQuery expands character entity references and XPath does not,
> expressions containing character entitities produce different results in the
> two languages. For instance, the value of the string literal "&" is & in
> XQuery, and &amp; in XPath. 

perhaps the & got mangled in transit, but the above appears wrong,

The string literal given, "&" is a syntax error in Xquery and the string of
length 1 containing an ampersand in xpath. But it doesn't contain an entity
reference so isn't an example of the first sentence. I think the intended
example is

the string literal "&amp;" is "&" in Xquery and "&amp;" in Xpath.

Other minor comment:

String literals  contain entity references (not entities)

(also typo: entitities  --> entities )


Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 6 October 2009 11:07:34 UTC

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