OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Date Format in XSD Schema

[ Lists Home | Date Index | Thread Index ]

Helo All

Can anybobdy help me in specifying date format in xsd.  I want to restrict 
date format in dd/mm/ccyy format, and also want to make this date optional.  
At the moment I am doing this

<xs:element name="DateAdded">
    <xs:simpleType>
	<xs:restriction base="xs:string">
	      <xs:pattern value="[0-2][0-9][/][0-1][0-9][/][0-2][0-2][0-9][0-9]"/>
	</xs:restriction>
    </xs:simpleType>
</xs:element>

I want to make this value optional.

Also how to specify an email address in xsd and make it optional.

Thnaks

Khurram.

_________________________________________________________________
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS