This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: replace function
- From: "James Fuller" <james dot fuller at o-idev dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 30 Sep 2002 18:41:15 +0100
- Subject: RE: [xsl] replace function
- Reply-to: xsl-list at lists dot mulberrytech dot com
<xsl:variable name="yourstring" select="somenode"/>
<xsl:value-of select="translate($yourstring,',',', ')"/>
should do it
gl, jim fuller
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Stevenson
> Ngila
> Sent: 30 September 2002 16:18
> To: xsl-list@lists.mulberrytech.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@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of James Fuller
> Sent: 30 September 2002 16:53
> To: xsl-list@lists.mulberrytech.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@lists.mulberrytech.com
> > [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Stevenson
> > Ngila
> > Sent: 30 September 2002 14:33
> > To: Xsl-List@Lists. 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