[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Quotes in a variable
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@xxxxxxxxxxx] > Sent: 24 January 2006 18:32 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: 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.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|