I have attempted several iterations of calculating a square root of a number in XSL/XML but can't get it working. This is my latest attempt. I am getting an error "Named template 'sqrt' does not exist in the stylesheet." This is the last bit that I need to write for this stylesheet and then I can turn my project in. -TIA
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:msxsl="urn:schemas-
microsoft-com:xslt" xmlns:inr="http://mycompany.com/mynamespace">
<xsl:import href="sqrt.xsl" />
<xsl:template match="HorizontalLine | HorizontalCircle | HorizontalSpiral">
<xsl:if test="Start[@pointType = 'POB']">
SqRt:
<xsl:call-template name="sqrt">
<xsl:with-param name="value" select="100"/>
</xsl:call-template>
</xsl:if>
</xsl:template>