RE: [xsl] Java method call error

Subject: RE: [xsl] Java method call error
From: "Khalid"<k_ali@xxxxxxxxxxxxxxx>
Date: Thu, 31 Jan 2002 16:35:27 GMT
I am using xalan,I have found out that to call an instance function I have to
add an instance of the saem object in the parameters
say I have a class that has a constructor
xsltJavaUtil()
and I need to access a method called getCurrentDate();
my understanding as of this moment is this,
xmlns:ext="http://121.121.121:8080/xsltJavaUtil";

<xsl:value-of select="ext:getCurrentDate(ext:new())"/>

As I understand I am passing an instance of the same object to a method and
since it doesn't take any other arguments it should return the required date.

but it sill gives me this error.

javax.xml.transform.TransformerException: Instance method call to method new
requires an Object instance as first argument

Khalid

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread