RE: [xsl] replacing , with a .

Subject: RE: [xsl] replacing , with a .
From: "Jim Fuller" <jim.fuller@xxxxxxxxxxxxxxxxxx>
Date: Fri, 18 Jul 2003 16:45:34 +0100
> -----Original Message-----
> From: Challa, Harsha [mailto:hchalla@xxxxxxxxxxxx]
> Sent: 18 July 2003 16:36
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] replacing , with a .
> 
> 
> XML Gurus,
> 
> I have a street field with comma's  in the field. I would 
> like to replace
> the 
> commas with a . when i am extracting the data using XSL and 
> writing the flat
> file.
> 
> I am doing 
> 
>  <xsl:value-of
> select="ShippingPointAddress/@ShippingPointStreet"></xsl:value-of> 
> 

use translate() function
 <xsl:value-of select="translate(ShippingPointAddress/@ShippingPointStreet,',','.')">


check at www.dpawson.co.uk xslt faq

gl, jim fuller

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread