-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoperateur.xsl
43 lines (41 loc) · 1.67 KB
/
operateur.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs"
version="2.0">
<xsl:template match="/" >
<html>
<body>
<h3> Liste des operateurs </h3>
<ul>
<xsl:for-each select="operateur/client">
<li>
Nom du client: <xsl:value-of select="@nom" />
</li>
<table border="1" width="80%">
<tr>
<th>Num d'abonnement</th><th>type</th><th>DATE D'ABONNEMENT</th><th>MONTANT TOTAL DES FACTURES</th>
</tr>
<xsl:for-each select="abonnement">
<tr>
<td>
<xsl:value-of select="@num" />
</td>
<td>
<xsl:value-of select="@type" />
</td>
<td>
<xsl:value-of select="@dateAb" />
</td>
<td>
<xsl:value-of select="sum(facture/@montant)" />
</td>
</tr>
</xsl:for-each>
</table>
</xsl:for-each>
</ul>
</body>
</html>
</xsl:template>
</xsl:stylesheet>