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

RE: How to replace " with '

Subject: RE: How to replace " with '
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 7 Jun 2005 09:32:50 +0100
xsl value of replace
I find the most readable solution is:

<xsl:variable name="quot">"</xsl:variable>
<xsl:variable name="apos">'</xsl:variable>

<xsl:value-of select="translate(/element/title, $quot, $apos)"/>

Michael Kay

> -----Original Message-----
> From: Jiang, Peiyun [mailto:Peiyun.Jiang@xxxxxxxxxxxxxx] 
> Sent: 06 June 2005 22:39
> To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
> Subject:  How to replace " with '
> How to make this work?
> <xsl:value-of select="translate(/element/title, '"', "'")" />
> Thanks.
> Peiyun

Current Thread


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.
First Name
Last Name
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.