[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: What is the equivalent

Subject: RE: What is the equivalent
From: "Ivan Pedruzzi" <ipedruzz@xxxxxxxxxxxx>
Date: Mon, 22 Mar 2004 15:32:12 -0500
ivan pedruzzi
The following does vice versa; you specify what you want to keep

<xsl:value-of select="translate($phoneNumber, translate($phoneNumber, '0123456789', ''),'')"/>

Ivan


> -----Original Message-----
> From: Josh Canfield [mailto:Josh.Canfield@xxxxxxxxxxxx]
> Sent: Monday, March 22, 2004 2:24 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  What is the equivalent
> 
> If you know all the delimiters you could remove them with something like this:
> 
> <xsl:value-of select="translate($phoneNumber, '()- ','')"/>
> 
> Josh
> 
> -----Original Message-----
> From: Kotes Mogili [mailto:Kotes.Mogili@xxxxxxxxxxxxxxxxx]
> Sent: Monday, March 22, 2004 11:17 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  What is the equivalent
> 
> 
> 
> 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);
>             }
> 
> Thanks for the help...
> 
> Thanks
> Kotes

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.