1<?xml version='1.0'?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3                version='1.0'>
4
5<xsl:variable name="foo" select="'1'"/>
6
7<xsl:template name="test">
8<xsl:param name="foo" select="'2'"/>
9<xsl:choose>
10    <xsl:when test="$foo = '0'">
11        <xsl:text>SUCCESS</xsl:text>
12    </xsl:when>
13    <xsl:otherwise>
14        <xsl:text>FAILURE </xsl:text>
15	<xsl:value-of select="$foo"/>
16    </xsl:otherwise>
17</xsl:choose>
18</xsl:template>
19
20<xsl:template match="/">
21<xsl:variable name="foo" select="'3'"/>
22<xsl:call-template name="test">
23    <xsl:with-param name="foo" select="'0'"/>
24</xsl:call-template>
25</xsl:template>
26
27</xsl:stylesheet>
28