diaporamaMiscXML
 
◃  Ch. 2 XML Schema  ▹
 

Exemple

<xsd:simpleType name="RVB">
  <xsd:restriction base="xsd:string">
    <xsd:enumeration value="bleu"/>
    <xsd:enumeration value="rouge"/>
    <xsd:enumeration value="vert"/>
  </xsd:restriction>
</xsd:simpleType >
<xsd:simpleType name="temperature">
  <xsd:restriction base="xsd:integer">
    <xsd:minInclusive value="-90"/>
    <xsd:maxInclusive value="60"/>
  </xsd:restriction>
</xsd:simpleType>