This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: replace function


<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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]