W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2001

Re: Email type

From: <Noah_Mendelsohn@lotus.com>
Date: Sat, 9 Jun 2001 14:48:23 -0400
To: Roman Rytov <roman@davinci.co.il>
Cc: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>, www-xml-schema-comments@w3.org
Message-ID: <OF127A9BCE.E8DBFDF8-ON85256A66.0066E74A@lotus.com>

Roman Rytov writes:

>> Does a type for e-mail exist in "xsd" datatypes?
>> If no is there any easyer way to define it
>> comparing to the next definition:
>> <xsd:simpleType name="ZEmail">
>>         <xsd:restriction base="xsd:string">
>>                 <xsd:pattern value=".+@.+[.]+.+"/>
>>         </xsd:restriction>
>> </xsd:simpleType>

Not exactly what you're asking for, but there is a type for URI references
which should be easily restrictable using a regular expression pattern to
mailto:  only.   One might argue that to be a somewhat more web-centric
solution, but I'm not sure it meets your needs.  I'm not aware of anyone
who has created a standard name for such a type in a type library, but it
might be a good idea.

Noah Mendelsohn                                    Voice: 1-617-693-4036
Lotus Development Corp.                            Fax: 1-617-693-8676
One Rogers Street
Cambridge, MA 02142
Received on Sunday, 10 June 2001 19:41:08 UTC

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