Name: Anonymous 2017-07-01 18:13
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" omit-xml-declaration="yes" />
<xsl:template match="/">
<xsl:call-template name="FizzBuzz">
<xsl:with-param name="i" select="1" />
</xsl:call-template>
</xsl:template>
<xsl:template name="FizzBuzz">
<xsl:param name="i" />
<xsl:choose>
<xsl:when test="($i mod 3) = 0 and ($i mod 5) = 0">FizzBuzz
</xsl:when>
<xsl:when test="$i mod 3 = 0">Fizz
</xsl:when>
<xsl:when test="$i mod 5 = 0">Buzz
</xsl:when>
<xsl:otherwise><xsl:value-of select="$i" /><xsl:text>
</xsl:text></xsl:otherwise>
</xsl:choose>
<xsl:if test="$i < 100">
<xsl:call-template name="FizzBuzz">
<xsl:with-param name="i" select="$i + 1" />
</xsl:call-template>
</xsl:if>
</xsl:template>
</xsl:stylesheet>