Hi,
I am trying to compute an absolute value in my stylesheet using exslt extension
function but I cant get it working.
here is my stylesheet:
-------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:xalan="http://xml.apache.org/xalan" exclude-result-prefixes="xalan"
xmlns:math="http://www.exslt.org/math" extension-element-prefixes="math">
<xsl:import href="math.abs.xsl" />
<xsl:template match="/">
<xsl:value-of select="math:abs(-13)"/>
</xsl:template>
</xsl:stylesheet>
-------------------------------------------------
I am using xalan to transform. At the command line I get this error:
(Location of error unknown)XSLT Error (javax.xml.transform.TransformerException)
: java.lang.NoSuchMethodException: For extension function, could not find method
java.lang.Double.abs([ExpressionContext,] ).
these files are in the same dir as my stylesheet:
math.abs.js
math.abs.msxsl.xsl
math.abs.xml
math.abs.xsl
Thanks for any help, this is the first time I have tried to use an EXSLT
extension function.
thanks,
will
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list