jeorg
11-30-2002, 11:06 AM
this code doesn't work
if I do position()!=last i tworks , but I want to apply a different style on the first element
------------------------------------------------------------
<xsl:template match="/conditions/condition/para">
<xsl:choose>
<xsl:when test="position()=1">
<div class="paraDebut">
<xsl:value-of select="."/>
</div>
</xsl:when>
<xsl:otherwise>
<div class="paraNormal">
<xsl:value-of select="."/>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
--------------------------------------------------------
thank you
if I do position()!=last i tworks , but I want to apply a different style on the first element
------------------------------------------------------------
<xsl:template match="/conditions/condition/para">
<xsl:choose>
<xsl:when test="position()=1">
<div class="paraDebut">
<xsl:value-of select="."/>
</div>
</xsl:when>
<xsl:otherwise>
<div class="paraNormal">
<xsl:value-of select="."/>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
--------------------------------------------------------
thank you