Subject: format-number() for a phone number? From: Mike Brown <mbrown@xxxxxxxxxxxxx> Date: Tue, 25 May 1999 15:33:25 -0600 |
I need to format North American phone numbers that are 10 digits, like: <phone>3035551212</phone> would become (303) 555-1212 My understanding from looking at the list archives is that there is no consensus things like length(phone) and substring(phone,0,3) are not possible with XSLT at this time, due to unresolved issues about characters vs bytes. Is it possible to use the format-number() function to achieve this kind of formatting? I can't deduce how to use format-number() at all, really. The spec points to JDK documentation for DecimalFormat, but the example in that doc is not terribly helpful. Any help appreciated. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: round(), Steve Schafer | Thread | Re: format-number() for a phone num, David Carlisle |
Re: XSL-FO Does it have the guts?, Chuck White | Date | Stylesheet tools, Filip Hanik |
Month |