xsl-list
[Top] [All Lists]

Re: [xsl] Email Address Validation

2006-08-24 09:48:12
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(_at_)abc(_dot_)com</EMAIL_TO>
<EMAIL_BCC>senthil(_at_)abc(_dot_)com</EMAIL_BCC>
<EMAIL_CC>senthil(_at_)abc(_dot_)com</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


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