[Home] [By Thread] [By Date] [Recent Entries]
I was
able to get this format with param's and substring functions, but its prettyDid you try substring like below? <xsl:variable name="phone" select="/PhoneNum/text()"/> <xsl:value-of select="concat('(',substring($phone,1,4),') ',substring($phone,5,3),'-',substring($phone,8,4))"/> If you have tried this and u find this an Ugly approach, then u might want to use the extension functions ( Java methods that return you the result in your required format). HTH Vasu From: "CROFT, MICHAEL" <MCROFT@xxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: "'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: Formatting a String Date: Mon, 17 Jun 2002 10:36:24 -0400 _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



