W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2005

regular expressions in xml schema

From: Bryan Rasmussen <brs@itst.dk>
Date: Fri, 11 Mar 2005 14:14:20 +0100
Message-ID: <D45A5694803BE943BA46F9A7262BF83D1236C3@its42.itst.local>
To: xmlschema-dev@w3.org

Hi, I have the following regular expression for an email address,

from Gavin Sharp at regexlib

as in 
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://rep.oio.dk/email"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0"


	<xsd:element name="email" type="e:emailType" />

<xsd:simpleType name="emailType">
<xsd:restriction base="xsd:string">

this works fine when ran in XSV, that is it allows email addresses I
expected, and disallows non-email strings, however in msxml's schemaCache
and in XMLSPY professional #3 2004 it won't even accept hello@world.com, now
I can't say I have a clear understanding on constraints of regex usage in
xmlschema so what i would like to know is are schemaCache and XMLSPY
correct? That this regex in xml schema should consider name@address.com type
addresses as incorrect?
If so what is wrong with it?
Received on Friday, 11 March 2005 13:23:15 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:07 UTC