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

String literal syntax in XPath2.0

From: Pfeiffer, Bernhard - Munich <bpfeiffer@munichre.com>
Date: Mon, 25 Feb 2002 04:21:11 -0500 (EST)
Message-ID: <86415816BF51D511904C0003472337CF449450@mxx0023.munich.munichre.com>
To: "'www-xpath-comments@w3.org'" <www-xpath-comments@w3.org>
Dear XPath people,
working with Xpath I found a syntactical problem:

[141]   	 StringLiteral	    ::=   	 (["] [^"]* ["]) |  ([']
[^']* ['])	
http://www.w3.org/TR/xpath20/#id-literals

What to do with a string which contains both characters " and ' ????

I came to this problem thinking about using XPath expressions as data in xml
documents to express
references into the same or other xml documents.

Example
<item n='terrible &apos;&quot; name'/>
...
<link_to_item link="/item[@n='terrible &apos;&quot; name']">

By the way, dynamic XPath expressions would be very nice:
http://www.w3.org/TR/xslt20/#dynamic-evaluation!!!

Best regards


Bernhard Pfeiffer
Münchener Rückversicherungs-Gesellschaft
NORMRISK Team
Tel: +49 (0)89 3891-5678
Fax +49 (0)89 3891-4097
BPfeiffer@munichre.com
http://www.munichre.com
Received on Monday, 25 February 2002 05:07:26 GMT

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