xsl-list
[Top] [All Lists]

RE: [xsl] Format Phone number

2009-12-21 05:28:13

I want to format phone number xxx-xxx-xxxx format.

Are you really sure it is wise to write an application that can only handle
phone numbers in US format? This kind of thing gets very annoying for users
in other countries. (I've had to give an invented phone number before now to
get past the "validation" on the input form...)

A phone number should not really be treated as a number: leading zeroes are
significant, and arithmetic operations are meaningless. It's really just a
string whose component characters happen to be digits.

I am using XSL1.0
I tried with below approaches but didn't work

Please don't say that something "didn't work" without telling us the
symptoms. Did it produce output, or an error message? If it produced output,
what was the output and how was it wrong? If it produced an error message,
what was the message?

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 


--~------------------------------------------------------------------
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>