Subject: RE: [xsl] Format Phone number From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 23 Dec 2009 10:35:05 -0500 |
>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.
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Format Phone number, Gannon Dick | Thread | [xsl] convert xml with schema to ht, Lajos Joo |
Re: [xsl] using xsl:output-characte, Martin Honnen | Date | Re: [xsl] using xsl:output-characte, David Carlisle |
Month |