An error occurred in the Vivísimo application

error   XSLT error: compilation error: element stylesheet.
error   XSLT error: element stylesheet only allowed only as root element.
error   XSLT error: compilation error: element stylesheet.
error   XSLT error: xsltParseStylesheetTop: unknown stylesheet element.
error   Failed to interpret XML as XSL.
error   Failed to compile parser <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" indent="no" /> <xsl:param name="fetch.timeout" /> <xsl:param name="fetch.elapsed" /> <xsl:param name="query.num-total" /> <xsl:variable name="flex" select="0.2" /> <xsl:variable name="parses" select="/*/parse"/> <xsl:variable name="submits" select="/*/submit[@status='translated']"/> <xsl:variable name="requested" select="sum($parses/@per)"/> <xsl:variable name="retrieved" select="sum($parses/@per-retrieved)"/> <xsl:variable name="retrieved-requested" select="sum($parses[@status]/@per)" /> <xsl:variable name="logins-waiting" select="count($parses[not(@per) and not(@status)])"/> <xsl:variable name="waiting" select="sum($parses[not(@status)]/@per)"/> <xsl:param name="num"> <xsl:choose> <xsl:when test="$query.num-total > 0"> <xsl:value-of select="$query.num-total" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="sum($submits/@num)" /> </xsl:otherwise> </xsl:choose> </xsl:param> <xsl:variable name="num-parses" select="count($parses)"/> <xsl:variable name="num-parses-done" select="count($parses[@status])"/> <xsl:variable name="num-submits" select="count($submits)"/> <xsl:variable name="num-submits-responded"> <xsl:call-template name="responded"/> </xsl:variable> <xsl:variable name="num-submits-returned"> <xsl:call-template name="responded"> <xsl:with-param name="returned" select="true()"/> </xsl:call-template> </xsl:variable> <xsl:template match="/"> <!-- <xsl:message>Requested: <xsl:value-of select="$requested"/> Retrieved: <xsl:value-of select="$retrieved"/> Retrieved-requested: <xsl:value-of select="$retrieved-requested"/> Waiting: <xsl:value-of select="$waiting"/> Num parses: <xsl:value-of select="$num-parses"/> Num parses done: <xsl:value-of select="$num-parses-done"/> Num submits: <xsl:value-of select="$num-submits"/> Num submits respond: <xsl:value-of select="$num-submits-responded"/> Num submits returned: <xsl:value-of select="$num-submits-returned"/> </xsl:message> --> <xsl:choose> <xsl:when test="$logins-waiting > 0"/> <xsl:when test="$waiting = 0">stop1</xsl:when> <xsl:when test="$retrieved >= $num">stop2</xsl:when> <xsl:when test="$fetch.elapsed * $flex &gt; $fetch.timeout">stop3</xsl:when> <xsl:when test="$waiting &lt;= $retrieved * $flex * $fetch.elapsed div $fetch.timeout">stop4</xsl:when> <xsl:when test="$retrieved >= (1 - $flex * $fetch.elapsed div $fetch.timeout) * $num">stop5</xsl:when> <xsl:when test="$retrieved-requested >= (1 - $flex * $fetch.elapsed div $fetch.timeout) * $requested">stop6</xsl:when> </xsl:choose> </xsl:template> <xsl:template name="responded"> <xsl:param name="n" select="1"/> <xsl:param name="returned" select="false()"/> <xsl:variable name="next-responded"> <xsl:choose> <xsl:when test="$num-submits &gt; $n"> <xsl:call-template name="responded"> <xsl:with-param name="n" select="$n+1"/> <xsl:with-param name="returned" select="$returned"/> </xsl:call-template> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="source" select="$submits[$n]/@source"/> <xsl:variable name="this-responded"> <xsl:choose> <xsl:when test="not($returned) and $parses[@status and @source = $source]">1</xsl:when> <xsl:when test="$returned and $parses[@status and @source = $source and @retrieved > 0]">1</xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:value-of select="$this-responded + $next-responded"/> </xsl:template> </xsl:stylesheet> .