String literal syntax in XPath2.0

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 UTC