Apparently, there is no XSLT version. Well, here is one:
The XML file:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="99bottles.xsl"?>
<beer>99</beer>
The XSLT: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform>; <xsl:output method="html" indent="yes"/>
<xsl:template match="/">
<html>
<head>
<title>Beer!</title>
</head>
<body>
<xsl:call-template name="beer">
<xsl:with-param name="bottles" select="/beer"/>
</xsl:call-template>
</body>
</html>
</xsl:template>
<xsl:template name="beer">
<xsl:param name="bottles" />
<xsl:if test="$bottles > 0">
<p>
<xsl:value-of select="$bottles"/>
<xsl:choose>
<xsl:when test="$bottles = 1" >
<xsl:text> bottle of beer on the wall</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text> bottles of beer on the wall</xsl:text>
</xsl:otherwise>
</xsl:choose>
<br/>
<xsl:value-of select="$bottles"/>
<xsl:choose>
<xsl:when test="$bottles = 1" >
<xsl:text> bottle of beer!</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text> bottles of beer!</xsl:text>
</xsl:otherwise>
</xsl:choose>
<br/>
<xsl:text>You take one down, and pass it around</xsl:text>
<br/>
<xsl:choose>
<xsl:when test="($bottles - 1) = 0" >
<xsl:text>No bottles of beer on the wall!</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$bottles - 1"/>
<xsl:text> bottles of beer on the wall!</xsl:text>
</xsl:otherwise>
</xsl:choose>
</p>
<xsl:call-template name="beer">
<xsl:with-param name="bottles" select="$bottles - 1"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
</xsl:stylesheet>