Subject: why get the value not be calculated
From: Roelof Wobben <rwobben@xxxxxxxxxxx>
Date: Sat, 31 Dec 2011 17:04:49 +0000
|
Hello,
I have this xslt :
<xsl:param name="total_articles" select="count(data/dagboek/entry)" />
<xsl:param name="articles_per_page">
<xsl:choose>
<xsl:when test="$page = 1 and $value=2005-09">2</xsl:when>
<xsl:otherwise>3</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="number_pages">
<xsl:choose>
<xsl:when test="$page = 1 and $value=2005-09">8</xsl:when>
<xsl:otherwise>floor(number($total_articles)-1) div
$articles_per_page)+1"/</xsl:otherwise>
</xsl:choose>
</xsl:param>
But when I do :
<xsl:value-of select="$number_pages>
I see the whole formula displayed and not the outcome.
What did I do wrong ?
Roelof
|