> -----Original Message-----
> From: Challa, Harsha [mailto:hchalla@xxxxxxxxxxxx]
> Sent: 18 July 2003 16:36
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject: 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
|