this code doesn't work
if I do position()!=last it works , but I want to apply a different style on the first element only
------------------------------------------------------------
<xsl:template match="/conditions/condition/para">
<xsl:choose>
<xsl:when test="position()=1">
<div class="paraDebut">
<xsl:value-of select="."/>
</div>
</xsl:when>
<xsl
therwise>
<div class="paraNormal">
<xsl:value-of select="."/>
</div>
</xsl
therwise>
</xsl:choose>
</xsl:template>
------------------------------
do you know what is wrong ?
thank_you
if I do position()!=last it works , but I want to apply a different style on the first element only
------------------------------------------------------------
<xsl:template match="/conditions/condition/para">
<xsl:choose>
<xsl:when test="position()=1">
<div class="paraDebut">
<xsl:value-of select="."/>
</div>
</xsl:when>
<xsl
<div class="paraNormal">
<xsl:value-of select="."/>
</div>
</xsl
</xsl:choose>
</xsl:template>
------------------------------
do you know what is wrong ?
thank_you