<xsl:variable name="yourstring" select="somenode"/>
<xsl:value-of select="translate($yourstring,',',', ')"/>
should do it
gl, jim fuller
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of
Stevenson
Ngila
Sent: 30 September 2002 16:18
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] replace function
All what i want to achieve is get a string i.e. "steve,john,peter" and
replace the next word to a comma with a space hence the new string become
"steve, john, peter" how can i achieve this using the translate function?
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of
James Fuller
Sent: 30 September 2002 16:53
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] replace function
use translate()
another 'hunt and peck' person I see.
see what google said
http://www.google.com/search?sourceid=navclient&q=Does+XSLT+have+a
+replace+f
unction%3F
cheers, jim fuller
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of
Stevenson
Ngila
Sent: 30 September 2002 14:33
To: Xsl-List(_at_)Lists(_dot_) Mulberrytech. Com
Subject: [xsl] replace function
Does XSLT have a replace function?
Thanks,
Stevenson Ngila
Footman-Walker Associates Ltd
http://www.footman-walker.co.uk
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list