getting this error, why,
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------
----------
----------
----------
----------
----------
----
Named template 'calculator' does not exist in the stylesheet.
<xsl:template name="calculator">
<xsl:param name="currSum"/>
<xsl:param name="count"/>
<xsl:variable name="qty" select="number(//Product[n
umber($cou
nt)]/Quant
ity)"/>
<xsl:variable name="cost" select="number(//Product[n
umber($cou
nt)]/PdtPX
)"/>
<xsl:variable name="sum" select="number($qty * $cost)"/>
<xsl:variable name="CycleSum" select="number($currSum + $sum)"/>
<xsl:choose>
<xsl:when test="number($count - 1) > 0 ">
<xsl:call-template name="calculator">
<xsl:with-param name="currSum">
<xsl:value-of select="$CycleSum"/>
</xsl:with-param>
<xsl:with-param name="count">
<xsl:value-of select="number($count - 1)"/>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$CycleSum"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<hr/>
<p>
<font color="#66F" size="2.5"> SUMMARY</font>
</p>
<xsl:variable name="Total">
<xsl:call-template name="calculator">
<xsl:with-param name="currSum">0</xsl:with
-param>
<xsl:with-param name="count">
<xsl:value-of select="count(//Product)"/
>
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<table border="0" cellspacing="5">
<tr>
<td>
<p>
<font color="#FF0000" size="3">Total Invoice: </font>
</p>
</td>
<td align="center">
<font color="#000000" size="2">
<b> £<xsl:value-of select="$Total"/>
</b>
</font>
</td>
<td>
<p>
<font color="#FF0000" size="3">Total Order: </font>
</p>
</td>
<td align="center">
<font color="#000000" size="2">
<b>
<xsl:value-of select="count(//ProductID)
"/>
</b>
</font>
</td>
<td>
<p>
<font color="#FF0000" size="3"> Total Number of Product : </font>
</p>
</td>
<td align="center">
<font color="#000000" size="2">
<b>
<xsl:value-of select="sum(//Quantity)"/>
</b>
</font>
</td>
</tr>
</table>