<xsl:value-of select="translate(/element/title, '"', ''')"/>
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
|