Bonjour,
Je ne sais pas vraiment si mon message doit etre posté ici mais comme c est du XSLT ...
Voila, j ai un tableau pour lequel je dois changer l ecriture de la font de chaque ligne en fonction de deux paramètres ... Pour le moment je fais cela :
Pour le moment je n ai fait le test que pour la première colonne mais je trouve que ça risque de faire un peu lourd de faire le mm test sur toutes les colonnes , non ?<x:for-each select="//NIVEAU1">
<tr >
<x:choose>
<x:when test="@PRIX_VENTE=@PRIX">
<td class="texteorange"><x:value-of select="@NOMG"/></td>
</x:when>
<x:when test="@PRIX_VENTE>@PRIX">
<td class="textered"><x:value-of select="@NOM"/></td>
</x:when>
<x:otherwise>
<td class="textegreen"><x:value-of select="@NOM"/></td>
</x:otherwise>
</x:choose>
<td ><x:value-of select="@CLIENT"/></td>
<td ><x:value-of select="u:formaterQuantite(@QUANTITE)"/></td>
<td ><x:value-of select="@UNITE"/></td>
<td ><x:value-of select="u:formaterNumber(@PRIX_VENTE)"/></td>
<td ><x:value-of select="u:formaterNumber(@PRIX)"/></td>
</tr>
</x:for-each>
Voyez vous un moyen plus simple ???
Merci
Partager