{
ListeDExpressions }
attribute
NomAttribut {
ListeDExpressionsOption }
comment
{
ListeDExpressions }
document
{
ListeDExpressions }
element
NomObjet {
ListeDExpressionsOption }
ordered {
ListeDExpressions }
processing-instruction
NomObjet {
ListeDExpressionsOption }
text
{
ListeDExpressions }
unordered {
ListeDExpressions }
validate
ModeValidationOption {
ListeDExpressions }
<-- ****************************************************** -->
declare function FormaterEmploye($E as element(TypeEmploye)) as element(Employe)
<-- Objet : Formate un employe. -->
<-- ****************************************************** -->
{
return
<Employe Numero={$E/Numero}>
<Nom>{$E/Nom}</Nom>
<Salaire>{$E/Salaire}</Salaire>
<DateDEmbauche>{$E/DateEmbauche}</DateDEmbauche>
</Employe>
};
<?xml version="1.0"?>
<ListeEmployes
xmlns="http://www.up-comp.com/application/employes"
xmlns:xschemaInstance="http://www.w3.org/2001/XMLSchema-instance"
xschemaInstance:schemaLocation="http://www.up-comp.com/application/employes http://www.up-comp.com/application/employes.xsd">
{ FormaterEmploye(<TypeEmploye Numero=7724 Nom="Mister Scott" Salaire=1000.0 DateDEmbauche=2005-12-28 10:50:00/>
{ FormaterEmploye(<TypeEmploye Numero=7832 Nom="Mister Allen" Salaire=1200.0 DateDEmbauche=2002-01-26 11:09:10/>
{ FormaterEmploye(<TypeEmploye Numero=7948 Nom="Lady Smith" Salaire=1400.0 DateDEmbauche=2004-02-10 15:22:20/>
{ FormaterEmploye(<TypeEmploye Numero=7954 Nom="Miss King" Salaire=2000.0 DateDEmbauche=2003-04-01 08:12:20/>
</ListeEmployes>