[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: Jean-Luc Mathieu <jean-luc.mathieu@xxxxxxxxxxxxx>
Date: Tue, 07 Jun 2005 10:51:35 +0200
to replace with
<xsl:value-of select="translate(/element/title, '&quot;', '&apos;')"/>
does not work ?



Michael Kay a icrit :

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
http://www.saxonica.com/




-----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






-- -- *Jean-Luc Mathieu* Virtualys - BP 32013 - 29220 Brest CEDEX 2 - Til. : +33 (0)2 98 05 29 71 Ligne directe (co{t d'un appel local) : +33 (0)8 70 72 52 82

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.