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:30:53 +0000
To: public-qt-comments@w3.org
Message-Id: <E1MftIj-0001HW-9T@wiggum.w3.org>

--- Comment #2 from Jonathan Robie <jonathan.robie@redhat.com>  2009-08-25 10:30:53 ---
(In reply to comment #1)
> Yes, the statement is incorrect in this respect.
> XPath is designed for embedding in XML documents and therefore leaves the XML
> parser to expand the entity references before XPath parsing starts.

I don't think the statement is incorrect - XPath can be embedded in many
different contexts, not just XML, and this is just one example in which some
kind of processing is done in a given context to produce an XPath expression.

Any expression that is syntactically valid and executes successfully in both
XPath 2.0 and XQuery 1.0 will return the same result in both languages. That's
true. If you embed your XPath or XQuery expression in an XML document and use
XML entities in this manner, the expression is whatever is handed off to the
XQuery or XPath processor, not the text you see in the XML document.

I do not see a need to change the documents here.

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:31:02 UTC

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