xsl-list
[Top] [All Lists]

Re: [xsl] Format Phone number

2009-12-21 07:11:29
Am 21.12.2009 um 12:33 schrieb Anil Kumar Veeramalli:

do you think is this good approach?

No. It seems to fulfill a short-term request but it is going to fail soon. 
Because as soon as any extra requirement appears (and they usually do), you are 
stuck. Whether it is the leading "+", additional digits in parentheses, a 
different international digit grouping, or the separation of country/city/local 
parts of the number. Especially the latter would be fun, because you would have 
to calculate the full-form "number" from individual parts... in Germany we have 
city code with 3…6 digits plus local "numbers" ranging from 3…8 digits. Hey, 
and what about vanity numbers...

Try a more solid approach. Even though we call it a telephone "number" it is 
not a numeric, like every computer likes to treat it.

Good luck,

- Michael Müller-Hillebrand

--
_______________________________________________________________
Michael Müller-Hillebrand: Dokumentations-Technologie
Adobe Certified Expert, FrameMaker
Lösungen und Training, FrameScript, XML/XSL, Unicode
Blog: http://cap-studio.de/ - Tel. +49 (9131) 28747






--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>