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

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

From: <bugzilla@wiggum.w3.org>
Date: Tue, 25 Aug 2009 10:40:36 +0000
To: public-qt-comments@w3.org
Message-Id: <E1MftS8-0002Sh-Ru@wiggum.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=7163





--- Comment #3 from Michael Kay <mike@saxonica.com>  2009-08-25 10:40:36 ---
The original comment is correct: if for example you execute the XPath
expression

string-length("&amp;")

from a Java application using the JAXP API, you will get the result 5, whereas
if you execute the same expression using an XQuery processor using the XQJ API,
you will get the result 1.

Of course if you write in XSLT

<xsl:value-of select='string-length("&amp;")'/>

you will get the answer 1. But that's because the XPath expression you are
evaluating is 

string-length("&")

which is not even legal as an XQuery expression.


-- 
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, 25 August 2009 10:40:45 UTC

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