This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Escaping single quote


> Thanks for the quick reply, I'm thinking more of something like this:
> 
> <xsl:value-of 
> select="concat('/JSPRoot',DataLocation,'[@ID='5']','/',Databas
> eVariableName)"/>
>    
> The single quotes around the 5 isn't liked because of the 
> single quote around the '[@ID....]'
> 
> Any ideas?

Write 
<xsl:variable name="apos">'</xsl:variable>
and then use $apos in your concat() call.

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]