Subject: RE: format-number() for a phone number?|
From: "Cote, Stephane" <scote@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 25 May 1999 15:24:09 -0700
I just tried it.
From: Mike Brown [SMTP:mbrown@xxxxxxxxxxxxx]
Sent: Tuesday, May 25, 1999 2:33 PM
Subject: format-number() for a phone number?
I need to format North American phone numbers that are 10 digits, like:
My understanding from looking at the list archives is that there is no
things like length(phone) and substring(phone,0,3) are not possible with
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
points to JDK documentation for DecimalFormat, but the example in that doc
not terribly helpful.
Any help appreciated.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list