EXSLT - math:sqrt - Implementer Page

Version: 1
Status: implemented
User Page: index.html
XML Definition: math.sqrt.xml
Function Package: math.sqrt.zip

Function Syntax

number math:sqrt(number)

Template Syntax

<xsl:call-template name="math:sqrt">
   <xsl:with-param name="value" select="number" />
</xsl:call-template>

The math:sqrt function returns the square root of a number.

If the argument is a negative number, the return value is zero.

An implementation of this extension function in the EXSLT math namespace must conform to the behaviour described in this document.

Implementations

No XSLT processors that we know of have built-in support for math:sqrt.

The following implementations of math:sqrt are available:

LanguageImplemented VersionCreatorDateDownload
Msxsl1James Fuller2001-06-16math.sqrt.msxsl.xsl
Javascript1James Fuller2001-06-16math.sqrt.js
XSLT Template1Nate Austin2001-08-15math.sqrt.template.xsl
EXSLT Function1Nate Austin2001-08-15math.sqrt.function.xsl

Change History

Submitted: 2001-06-16
Creator: James Fuller(http://www.on-idle.com)

Returns the sqrt value of the passed argument.
VersionModifiedByDetails
1.12001-08-15Jeni Tennison Added XSLT template implementation and EXSLT - Functions implementation courtesy of Nate Austin.

http://www.exslt.org/math/functions/sqrt/math.sqrt.html last modified 2001-08-15