Subject: RE: [xsl] What is the equivalent From: "Kotes Mogili" <Kotes.Mogili@xxxxxxxxxxxxxxxxx> Date: Mon, 22 Mar 2004 17:17:53 -0500 |
Ivan, It filters all the characters other than 012345679 digits which is equivalent to the logic I am looking for.. Thanks Kotes -----Original Message----- From: Ivan Pedruzzi [mailto:ipedruzz@xxxxxxxxxxxx] Sent: Monday, March 22, 2004 3:32 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] What is the equivalent 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: [xsl] 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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] What is the equivalent, Kotes Mogili | Thread | [xsl] Re: Recursively removing empt, Dimitre Novatchev |
[xsl] Re: Recursively removing empt, Dimitre Novatchev | Date | RE: [xsl] FW: key, generate-id, ign, Andreas L. Delmelle |
Month |