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

RE: [xsl] What is the equivalent


Subject: RE: [xsl] What is the equivalent
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Mon, 22 Mar 2004 20:35:43 +0100

> -----Original Message-----
> From: Kotes Mogili [mailto:Kotes.Mogili@xxxxxxxxxxxxxxxxx]
> 
> 
> Hi,
> 
> What is the equivalent of the following logic in XSL1.0. 
> 
> PhoneNumber=(678)898-4274
> for (int i = 0; i < phoneNumber.length(); i++) {
>                 if (Character.isDigit(phoneNumber.charAt(i))) out 
> = out + phoneNumber.charAt(i);
>             }
> 

Hi,

Something like:
<xsl:value-of select="translate(PhoneNumber,'()-','')" />

Hope this helps!

Cheers,

Andreas


Current Thread