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

Re: Email Address Validation

Subject: Re: Email Address Validation
From: James Fuller <jim.fuller@xxxxxxxxxxxxxx>
Date: Thu, 24 Aug 2006 18:47:58 +0200
email address validation regexp
Senthilkumaravelan Krishnanatham wrote:
Hi Guys,
I have question regarding Validating the Email in my XML.
Can you please help me to give an idea,how should I go about the same.
My XML file looks like
<EMAIL_TO>senthil@xxxxxxx</EMAIL_TO>
<EMAIL_BCC>senthil@xxxxxxx</EMAIL_BCC>
<EMAIL_CC>senthil@xxxxxxx</EMAIL_CC>


this is prob not an XSLT question...your best bet is to use regular
expressions...perhaps there is some schema approach using XML Schema or
RelaxNG...dont know never tried.

As for regex;

xslt 1.0 needs an extension: http://www.exslt.org/regexp/index.html

xslt 2.0 has regex capability built in

google on email and regular expressions...be warned I have not been able
to find in 10 years a regex that covers everything.

gl, Jim Fuller

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-2011 All Rights Reserved.