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

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