Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > xsd enumeration and pattern

Reply
Thread Tools

xsd enumeration and pattern

 
 
news.emn.fr
Guest
Posts: n/a
 
      05-31-2006
Hello,

i got this attribute
<xs:attribute name="jour">
<xs:simpleType>
<xs:restriction base="stypeJour">
</xs:restriction>
</xs:simpleType>
</xs:attribute>

where

<xs:simpleType name="stypeJour">
<xs:restriction base="xs:string">
<xs:enumeration value="Lundi"/>
<xs:enumeration value="Mardi"/>
<xs:enumeration value="Mercredi"/>
<xs:enumeration value="Jeudi"/>
<xs:enumeration value="Vendredi"/>
<xs:enumeration value="Samedi"/>
<xs:enumeration value="Dimanche"/>
</xs:restriction>
</xs:simpleType>

Is it possible to "filter" properties of the attribute "jour"so that a
special enumeration value is forbidden ?
I don't know much about pattern . I think this might be the solution ,
something like
<xsattern value="\C Lundi "/> ???

where can I read more about pattern ?

Thanks

David



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
conditional enumeration in XSD kanpeter XML 1 10-26-2010 11:46 PM
Re-using a simple type definition; with enumeration constraint andwithout enumeration constraint puvit82 XML 4 02-01-2008 03:46 PM
XSD enumeration based on elements JamesSmithMz XML 0 11-30-2005 04:44 PM
[xsd] Can the content of a mixed type be an enumeration? Fender Mussel XML 0 09-14-2004 01:16 PM
Difference between <import ....xsd> and <xlink:href=.....xsd> ???? Bernd Oninger XML 1 06-30-2004 08:21 AM



Advertisments