This is one case where it's easier to use the RTF form:
<xsl:variable name="x">value</xsl:variable>
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Fraser Goffin [mailto:goffinf(_at_)hotmail(_dot_)com]
Sent: 24 January 2006 18:32
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Quotes in a variable
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>
--~--
--~------------------------------------------------------------------
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>
--~--