Re: ACTION 614-12: Smart Quotes

> 
> I would have assumed it to be XQuery-only as well.  This is about
> constructing text nodes, and XPath does not have node constructors
> (literal elements for instance).  This is rather done in XQuery (or
> XSLT, but XSLT already has such a mechanism).
> 

It’s actually about constructing strings rather than text nodes, but I think similar reasoning applies.

XPath is designed for embedding in other languages, and the problems of escaping special characters depend very much on the escaping conventions of the language in which it is embedded. A solution that works for one host language might work very badly for another.

Michael Kay
Saxonica

Received on Sunday, 20 September 2015 22:15:11 UTC