[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Format Phone number

Subject: RE: Format Phone number
From: Gannon Dick <gannon_dick@xxxxxxxxx>
Date: Tue, 22 Dec 2009 14:40:56 -0800 (PST)
RE:  Format Phone number
>Which brings us back to Michael's earlier recommendation that you
>don't hard-code any particular national convention regarding how
>phone numbers should be formatted.

Actually, I think it is as unhelpful to insist that all users treat
all applications as if they were in use world wide as to insist that
all users use a local convention.

---------------------------------------

For users Tommie is right, for good programming practice Dr. Kay has a point.  There is a Regular Expression that will validate any North American phone number given in the Perl Cookbook.  For a user that might be the end of the discussion.  However, a programmer can still commit a meta data error in a web form by requiring both requiring the field content AND validation.  An "out of area" bypass checkbox would enable field content OR validation.

Not blaming the user involves some commercial risk, but not a logical dilemma.

"It is difficult to get a man to understand something when his livelihood depends on him not understanding it."  --Upton Sinclair

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.