rendered paste body<xsl:stylesheet version = '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'> <xsl:template name="deepness"> <xsl:param name="glugs" select="self::Share"/> <xsl:choose> <xsl:when test="$glugs = 0"> bottom </xsl:when> <xsl:otherwise> <xsl:call-template name="deepness"> <xsl:with-param name="glugs"> <xsl:value-of select="$glugs - 1"/> </xsl:with-param> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="dirRecursion"> <xsl:param name="location" select="/"/> <xsl:choose> <xsl:when test="current() = File"> <xsl:value-of select="@Name"/> </xsl:when> <xsl:otherwise> <xsl:call-template name="dirRecursion"> <xsl:with-param name="location"> <xsl:value-of select="*"/> </xsl:with-param> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>