Skip to content

Instantly share code, notes, and snippets.

@nul800sebastiaan
Created June 28, 2011 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nul800sebastiaan/1050973 to your computer and use it in GitHub Desktop.
Save nul800sebastiaan/1050973 to your computer and use it in GitHub Desktop.
XSL Parameter doesn't work in a choose?!
<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