[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] replace function


Subject: RE: [xsl] replace function
From: "James Fuller" <james.fuller@xxxxxxxxxx>
Date: Mon, 30 Sep 2002 18:41:15 +0100

<xsl:variable name="yourstring" select="somenode"/>
<xsl:value-of select="translate($yourstring,',',', ')"/>


should do it

gl, jim fuller

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Stevenson
> Ngila
> Sent: 30 September 2002 16:18
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of James Fuller
> Sent: 30 September 2002 16:53
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]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



Current Thread
Keywords