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
| <xsl:template name="Protocoles">
<xsl:param name="courant"></xsl:param>
<xsl:param name="compteur">1</xsl:param>
<xsl:param name="suivant" select="following::Proto[$compteur]"></xsl:param>
<xsl:if test="position()='1'">
<fo:table-row>
<fo:table-cell>
<fo:block font-weight="bold"><xsl:value-of select="$suivant"/></fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:if>
<fo:table-row>
<fo:table-cell>
<fo:block><xsl:value-of select="Produit/Prod_nom"/></fo:block>
</fo:table-cell>
</fo:table-row>
<xsl:if test="$courant!=$suivant and position()!='1'">
<fo:table-row>
<fo:table-cell>
<fo:block font-weight="bold"><xsl:value-of select="$suivant"/></fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:if>
</xsl:template>
</xsl:stylesheet> |