<xsl:value-of select="translate(/element/title, '"', ''')"/>
does not work ?
Michael Kay a écrit :
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(_dot_)Jiang(_at_)nrc-cnrc(_dot_)gc(_dot_)ca]
Sent: 06 June 2005 22:39
To: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'
Subject: [xsl] How to replace " with '
How to make this work?
<xsl:value-of select="translate(/element/title, '"', "'")" />
Thanks.
Peiyun
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--
--
*Jean-Luc Mathieu*
Virtualys - BP 32013 - 29220 Brest CEDEX 2 - Tél. : +33 (0)2 98 05 29 71
Ligne directe (coût d'un appel local) : +33 (0)8 70 72 52 82
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--