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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
| <?xml version="1.0" encoding="UTF-8"?>
<table>
<xsl:for-each select="ANOMALY">
<xsl:choose>
<xsl:when test="@FACTORISATION='O'">
<tr>
<td>
Compte-Rendu
Premier Salarié concerné
Première rubrique
</td>
</tr>
<tr>
<td>
<table>
<tr>
<th>Rubrique</th>
<th>Valeur</th>
<th>Libellé</th>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<xsl:value-of select="@CODE_RUB" />
</td>
<td>
<xsl:value-of select="@VAL_RUB" />
</td>
<td>
<xsl:value-of select="@LIBELLE_RUB" />
</td>
<td>
<xsl:value-of select="@LIBELLE" />
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="(preceding-sibling::*[1]/@FACTORISATION='O') or not(preceding-sibling::*[1]/@FACTORISATION)">
<tr>
<td>
Anomalie
</td>
</tr>
<tr>
<td>
<table>
<tr>
<th>Rubrique</th>
<th>Valeur</th>
<th>Libellé</th>
<th>Anomalie</th>
</tr>
<tr>
<td>
<xsl:value-of select="@CODE_RUB" />
</td>
<td>
<xsl:value-of select="@VAL_RUB" />
</td>
<td>
<xsl:value-of select="@LIBELLE_RUB" />
</td>
<td>
<xsl:value-of select="@LIBELLE" />
</td>
</tr>
-------- comment faire pour ne pas fermer cette balise dans le when???
</table>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<td>
<table>
------- idem : comment faire pour ne pas ouvrir cette balise dans le otherwise??
<tr>
<td>
<xsl:value-of select="@CODE_RUB" />
</td>
<td>
<xsl:value-of select="@VAL_RUB" />
</td>
<td>
<xsl:value-of select="@LIBELLE_RUB" />
</td>
<td>
<xsl:value-of select="@LIBELLE" />
</td>
</tr>
</table>
</td>
</tr>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</table> |
Partager