Schema Untitled5.xsd


Elements 
Auteur 
Categorie 
Commentaire 
Etape 
Image 
Ingredient 
Ingredients 
Nom 
Preparation 
Recette 
Recettes 
Temps 
Titre 


element Auteur
diagram
children Nom
used by
element Recette
source
<xs:element name="Auteur">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="Nom"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element Categorie
diagram
used by
element Recette
attributes
Name  Type  Use  Default  Fixed  
ordre  xs:NMTOKEN  required      
matiere  xs:NMTOKEN  required      
source
<xs:element name="Categorie">
  <xs:complexType>
    <xs:attribute name="ordre" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:NMTOKEN">
          <xs:enumeration value="dessert"/>
          <xs:enumeration value="entree"/>
          <xs:enumeration value="plat_principal"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="matiere" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:NMTOKEN">
          <xs:enumeration value="fruit"/>
          <xs:enumeration value="fruit_de_mer"/>
          <xs:enumeration value="viande"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:element>

element Commentaire
diagram
type xs:string
used by
element Recette
source
<xs:element name="Commentaire" type="xs:string"/>

element Etape
diagram
type xs:string
used by
element Preparation
source
<xs:element name="Etape" type="xs:string"/>

element Image
diagram
used by
element Recette
attributes
Name  Type  Use  Default  Fixed  
src  xs:string  required      
source
<xs:element name="Image">
  <xs:complexType>
    <xs:attribute name="src" type="xs:string" use="required"/>
  </xs:complexType>
</xs:element>

element Ingredient
diagram
type restriction of xs:string
used by
element Ingredients
source
<xs:element name="Ingredient">
  <xs:complexType>
    <xs:simpleContent>
      <xs:restriction base="xs:string">
        <xs:attribute name="Produit" use="required">
          <xs:simpleType>
            <xs:restriction base="xs:NMTOKEN">
              <xs:enumeration value="ail"/>
              <xs:enumeration value="aneth"/>
              <xs:enumeration value="beurre"/>
              <xs:enumeration value="boucheealareine"/>
              <xs:enumeration value="bouquetgarni"/>
              <xs:enumeration value="canelle"/>
              <xs:enumeration value="carotte"/>
              <xs:enumeration value="celeri"/>
              <xs:enumeration value="champignon"/>
              <xs:enumeration value="ciboulette"/>
              <xs:enumeration value="citron"/>
              <xs:enumeration value="cornichon"/>
              <xs:enumeration value="creme_fraiche"/>
              <xs:enumeration value="crevette"/>
              <xs:enumeration value="echalote"/>
              <xs:enumeration value="farine"/>
              <xs:enumeration value="fumet_de_poisson"/>
              <xs:enumeration value="huile"/>
              <xs:enumeration value="lait"/>
              <xs:enumeration value="moutarde"/>
              <xs:enumeration value="oeuf"/>
              <xs:enumeration value="oignon"/>
              <xs:enumeration value="persil"/>
              <xs:enumeration value="piment"/>
              <xs:enumeration value="poireau"/>
              <xs:enumeration value="poivre"/>
              <xs:enumeration value="pomme"/>
              <xs:enumeration value="porc"/>
              <xs:enumeration value="raisin"/>
              <xs:enumeration value="saindoux"/>
              <xs:enumeration value="sel"/>
              <xs:enumeration value="sucre"/>
              <xs:enumeration value="veau"/>
              <xs:enumeration value="vin"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
      </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>
</xs:element>

element Ingredients
diagram
children Ingredient
used by
element Recette
attributes
Name  Type  Use  Default  Fixed  
personnes  xs:string  required      
source
<xs:element name="Ingredients">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="Ingredient" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="personnes" type="xs:string" use="required"/>
  </xs:complexType>
</xs:element>

element Nom
diagram
type xs:string
used by
element Auteur
source
<xs:element name="Nom" type="xs:string"/>

element Preparation
diagram
children Temps Etape
used by
element Recette
source
<xs:element name="Preparation">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="Temps" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="Etape" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element Recette
diagram
children Titre Image Categorie Ingredients Preparation Commentaire Auteur
used by
element Recettes
source
<xs:element name="Recette">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="Titre"/>
      <xs:element ref="Image" minOccurs="0"/>
      <xs:element ref="Categorie"/>
      <xs:element ref="Ingredients"/>
      <xs:element ref="Preparation"/>
      <xs:element ref="Commentaire" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="Auteur"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element Recettes
diagram
children Recette
source
<xs:element name="Recettes">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="Recette" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element Temps
diagram
type restriction of xs:string
used by
element Preparation
source
<xs:element name="Temps">
  <xs:complexType>
    <xs:simpleContent>
      <xs:restriction base="xs:string">
        <xs:attribute name="temps" use="required">
          <xs:simpleType>
            <xs:restriction base="xs:NMTOKEN">
              <xs:enumeration value="cuisson"/>
              <xs:enumeration value="preparation"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="unite" use="required">
          <xs:simpleType>
            <xs:restriction base="xs:NMTOKEN">
              <xs:enumeration value="heure"/>
              <xs:enumeration value="min"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
      </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>
</xs:element>

element Titre
diagram
type xs:string
used by
element Recette
source
<xs:element name="Titre" type="xs:string"/>


XML Schema documentation generated with
XML Spy Schema Editor www.xmlspy.com