Re: String literal syntax in XPath2.0

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 UTC