W3C home > Mailing lists > Public > www-xpath-comments@w3.org > January to March 2002

Re: String literal syntax in XPath2.0

From: Jeni Tennison <jeni@jenitennison.com>
Date: Mon, 25 Feb 2002 16:47:50 +0000
Message-ID: <97174299509.20020225164750@jenitennison.com>
To: www-xpath-comments@w3.org
CC: "Pfeiffer, Bernhard - Munich" <bpfeiffer@munichre.com>
Mike Kay wrote:
>> What to do with a string which contains both characters " and '
>> ????
>
> This problem actually exists at XPath 1.0, and in an XSLT
> environment it is usually solved by using concat() with variables.

[or without variables -- concat('He said, "', "I didn't", '"')]

> But we have resolved to extend the syntax for string literals to
> allow the delimiting quotes to be doubled as in SQL, so you will be
> able to write 'He said, "I didn''t"'.

Huzzah! Excellent. :)

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Monday, 25 February 2002 11:47:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:05:54 GMT