Created
June 28, 2011 11:41
-
-
Save nul800sebastiaan/1050973 to your computer and use it in GitHub Desktop.
XSL Parameter doesn't work in a choose?!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:template name="renderArticleList"> | |
<xsl:param name="orderByPopularity"/> | |
<xsl:param name="addShowInLatestNewsList"/> | |
<xsl:choose> | |
<xsl:when test="$orderByPopularity = 'true'"> | |
== <xsl:value-of select="$addShowInLatestNewsList" /> == | |
<!-- | |
Displays: == == | |
which is wrong.. | |
--> | |
</xsl:when> | |
<xsl:otherwise> | |
== <xsl:value-of select="$addShowInLatestNewsList" /> == | |
<!-- | |
Displays: == true == | |
this is the expected behaviour! | |
--> | |
</xsl:otherwise> | |
</xsl:choose> | |
</xsl:template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment