This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: sqrt
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Re: sqrt
- From: "Aleksei Valikov" <valikov at fzi dot de>
- Date: Mon, 13 Aug 2001 10:12:50 +0200
- References: <20010813074434.3161.qmail@web14703.mail.yahoo.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi.
> I need to use a sqrt() math function in a XSL/SVG
> style sheet. Knowing that I use a Saxon processor
Would this help you?
<?xml version="1.0"?>
<xsl:stylesheet
version="1.0"
xmlns:math="java:java.lang.Math"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
exclude-result-prefixes="math">
<xsl:template match="/">
<return><xsl:value-of select="math:sqrt(4)"/></return>
</xsl:template>
</xsl:stylesheet>
Works in Saxon.
Bye.
/lexi
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list