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

Built-in support for math:sqrt is available in the following XSLT processors:

ProcessorProcessor VersionImplemented Version
4XSLT, from 4Suite.0.12.0a31
libxslt from Daniel Veillard et al.1.0.191

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.ruminate.co.uk)

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.
1.22002-08-21Craig Stewart

Added 4XSLT and libxslt implementation to the list.

1.32002-11-12Craig Stewart

Updated 4XSLT version to 0.12.0a3.

http://www.exslt.org/math/functions/sqrt/math.sqrt.html last modified 2002-11-12