[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Format Phone number
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|