This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Java method call error
- From: "Khalid"<k_ali at telusplanet dot net>
- To: XSL-List at lists dot mulberrytech dot com
- Date: Thu, 31 Jan 2002 16:35:27 GMT
- Subject: RE: [xsl] Java method call error
- Reply-to: xsl-list at lists dot mulberrytech dot com
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