xsl-list
[Top] [All Lists]

[xsl] why get the value not be calculated

2011-12-31 11:05:03


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

                                          
--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--