[xsl] Quotes in a variable

Subject: [xsl] Quotes in a variable
From: "Fraser Goffin" <goffinf@xxxxxxxxxxx>
Date: Tue, 24 Jan 2006 18:31:33 +0000
I'm trying to create a variable that contains an XPath expression and that expression contains several quotes. I'm going to be outputting the value of this variable so I don't want to escape them with &quot;. Is it doable ?

For example: this obviously 'barfs' because there are too many ' in the select attribute value :-

<xsl:variable name="anXPath" select="'//*[local-name()='MessageID' and namespace-uri()='http://schemas.xmlsoap.org/ws/2004/03/addressing']'"

Cheers

Fraser.

Current Thread