xsd enumeration and pattern

N

news.emn.fr

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
<xs:pattern value="\C Lundi "/> ???

where can I read more about pattern ?

Thanks

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top