Hello, Nils.

Nils Kaiser <[EMAIL PROTECTED]> wrote on 2006-05-02 11:11:45 AM:
> As you mentioned it is not working with XSLTC.
> 
> I get an exception (translated):
> 
> Data type 'reference' cannot be converted to
> "de.kaiser.extensions.Context".

     The documentation on using Java extensions in XSLTC is poor.  Reading 
the code, the processor tries to use static information about the types of 
arguments to determine which method to invoke.  In the case of a 
stylesheet parameter, it has no static information about the type, so it's 
only able to match the argument to java.lang.Object.

     You could try making a static method on your class that accepts a 
java.lang.Object.  Assuming all the instance methods derive from a common 
base class, you could then cast the Object to the base class, and invoke 
the method you really want to use.

     I hope that helps.

Thanks,

Henry
------------------------------------------------------------------
Henry Zongaro      Xalan development
IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044
mailto:[EMAIL PROTECTED]


Reply via email to