Webclient
Webclient
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: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>
}
}