[Home] [By Thread] [By Date] [Recent Entries]
Sorry, I had been making multiple changes to the code and didn't get it
rolled back far enough.
When I do what you suggested, it doesn't generate any errors, but I still don't get the result as a node-set. The copy-of statement dumps the xml of the tree to the output. Also, count(exsl:node-set($projects)) returns 1 (It should return 26 when there is no filter). <xsl:template match="projects"> <xsl:variable name="projects"> <xsl:choose> <xsl:when test="$active_filter = 'active'"> <xsl:copy-of select="project[@active!=0]"/> </xsl:when> <xsl:when test="$active_filter = 'archived'"> <xsl:copy-of select="project[@active=0]"/> </xsl:when> <xsl:when test="$active_filter = 'new'"> <xsl:copy-of select="project[@new=1]"/> </xsl:when> <xsl:otherwise> <xsl:copy-of select="project"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:copy-of select="$projects"/> <xsl:choose> <xsl:when test="count(exsl:node-set($projects))>10"> <xsl:call-template name="pagenated"> <xsl:with-param name="projects" select="exsl:node-set($projects)"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:call-template name="not_pagenated"> <xsl:with-param name="projects" select="exsl:node-set($projects)"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:template> Thanks for your help. J Wendell Piez wrote:
|

Cart



