xsl-list
[Top] [All Lists]

Quotes in a variable

2006-01-24 11:31:33
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 ". 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.



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>