This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Java method call error


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]