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

RE: [xsl] format strings

Subject: RE: [xsl] format strings
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 17 Jan 2005 21:04:11 -0000

Use translate(., '-', '')

to get rid of hyphens in a string.

This isn't a number, so format-number() is irrelevant.

Michael Kay

> -----Original Message-----
> From: Bhaskar, Rajan [mailto:RBhaskar@xxxxxxx] 
> Sent: 17 January 2005 20:06
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] format strings
> Hi,
>  How to format string like
> if i want the phone number to be changed from 111-222-3333 to
> 1112223333. 
> How to i do this.The format-number looks like it only works for number
> but i'm fetching this value from attribute

Current Thread