0% found this document useful (0 votes)
12 views

Webclient

The document defines an XML schema for employees with elements like num, name, sex, age, phone number and city. It specifies data types, allowed values and minimum/maximum occurrences for the different elements.

Uploaded by

Dame Gaye
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Webclient

The document defines an XML schema for employees with elements like num, name, sex, age, phone number and city. It specifies data types, allowed values and minimum/maximum occurrences for the different elements.

Uploaded by

Dame Gaye
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

<table> <!

DOCTYPE Employes [
<tr> <!ELEMENT Employes (Presson)>
<th>Num</th> <th>prenom</th> <!ELEMENT Presson (man,wommen)>
</tr> <!ELEMENT num (#PCDATA)>
<xsl:for-each select="Employes/Presson"> <!ELEMENT nom (#PCDATA)>
<tr> <!ELEMENT prenom (#PCDATA)>
<td><xsl:value-of select="num"/></td> <!ELEMENT sexe (#PCDATA)>
<td><xsl:value-of select="prenom"/></td> <!ELEMENT age (#PCDATA)>
</xsl:for-each> ]>
</table>
<xs:element name="Employes">
<xs:complexType>
<xs:sequence>
<xs:element name="Presson" minOccurns="1" maxOccurns="unboundad">
<xs:complexType>
<xs:sequence>
---- <xs:element name="num" type="xs:int" minOccurns="1" maxOccurns="unboundad"/>
---- <xs:element name="sexe">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="Homme|Famme"/>
</xs:restriction>
</xs:simpleType>
</xs:element>

---- <xs:element name="tel">


<xs:simpleType>
<xs:restriction base="xs:int">
<xs:pattern value="[0][6-7][0-9]…"/>
</xs:restriction>
</xs:simpleType>
</xs:element>

---- <xs:element name="age" >


<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="18"/> <xs:maxInclusive value="45"/>
</xs:restriction>
</xs:simpleType>
</xs:element>

---- <xs:element name="ville">


<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="rabaat"/>

</xs:sequence>
<xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
{"Formation": <Employes>
{ <Personne id="P1">
"Filere" : <num>01</num>
[ <nom>Flane1</nom>
{
"Num":"1", </Personne>
"Niveau": <Personne id="P2">
[ <num>02</num>
{ "Niveau":"1 Année" }, <nom>Flane2</nom>
] <prenom>Benflane2</prenom>
}, </Personne>
] </Employes>
}
}

You might also like