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

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





--- 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