xsl-list
[Top] [All Lists]

RE: How to replace " with '

2005-06-07 01:32:50
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>