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
| <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<table style="margin-left: 35px;">
<tr>
<xsl:apply-templates select="//trombi">
<xsl:sort select="guid"/>
</xsl:apply-templates>
</tr>
</table>
</xsl:template>
<xsl:template match="trombi">
<xsl:param name="i" select="1"/>
<xsl:for-each select="membre">
<td>
<table style="width: 200px; text-align: center;">
<tr>
<td style="padding: 10px;">
<img src="pages/membres/images/{image}" />
</td>
</tr>
<tr>
<td style="text-align: center;">
<xsl:value-of select="nom" />
</td>
</tr>
<tr>
<td style="text-align: center; margin-top: 10px;">
<xsl:value-of select="promo" />
</td>
</tr>
</table>
</td>
<!-- <xsl:with-param name="i" select="$i + 1" /> -->
<xsl:if test="$i > 2">
<!-- </tr><tr> -->
<!-- <xsl:with-param name="i" select="1"/> -->
</xsl:if> -->
</xsl:for-each>
</xsl:template>
</xsl:stylesheet> |
Partager