[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Quotes in a variable

Subject: RE: Quotes in a variable
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 24 Jan 2006 19:09:54 -0000
variable with quotes
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 &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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.