Hi, This function was already implemented. If you download Xalan 2.4.1 (which was released yesterday), you will see it there.
The signature for this function is:
public static double sqrt(double num);
Morris Kwan
XSLT Development
IBM Toronto Lab
Tel: (905)413-3729
Email: [EMAIL PROTECTED]
"Artur Lorincz"
<artur.lorincz@ki To: <[EMAIL PROTECTED]>
q.com> cc:
Subject: EXSLT math functions
11/01/2002 04:22
AM
Please respond to
xalan-dev
Hello,
I would like to use the "sqrt" EXSLT math function from Xalan. I looked
briefly at some of the xalan sources and I would guess that this function
should be implemented in the ExsltMath.java from "org/apache/xalan/lib".
I am thinking of the following implementation:
public static XObject sqrt(XObject operand)
{
return new XNumber(Math.sqrt(operand.num());
}
Could you please tell me
1. If the above implementation is correct?
2. how can I link this implementation into the xalan's framework, so that
I
can use the sqrt function in the stylesheets?
thank you,
Artur L.
