Re: [xsl] How to replace " with '

Subject: Re: [xsl] How to replace " with '
From: Jean-Luc Mathieu <jean-luc.mathieu@xxxxxxxxxxxxx>
Date: Tue, 07 Jun 2005 10:51:35 +0200
<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: [xsl] 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