Hi Henry,

Thanks for you response. I did try to use the ExpressionContext object by 
calling 
the getVariableOrParam() function but it didn't find the param I set on the 
transformer 
(can't remember the exact message but I can look it up) with the setParameter() 
function.

Regarding the portability, what woulf be the correct (portable) way to pass an 
object to 
an extension ? 

Kind regards,
Marco Laponder
mlr AT interchain DOT nl


> -----Oorspronkelijk bericht-----
> Van: Henry Zongaro [mailto:[EMAIL PROTECTED]
> Verzonden: vrijdag 21 januari 2005 22:32
> Aan: xalan-dev@xml.apache.org
> Onderwerp: Re: Extension function and transformer handle
> 
> 
> Hi, Marco.
> 
> "Marco Laponder" <[EMAIL PROTECTED]> wrote on 2005-01-21 09:16:21 AM:
> > Is it possible to get from an extension function and handle to the 
> > transformer ? I need to get a parameter which is set onto the 
> > transformer. I did aclompish this from an extension element but not 
> > with an extension function. 
> 
>      If your extension function is implemented by a Java 
> method, and the 
> first argument of that method is of type 
> org.apache.xalan.extensions.ExpressionContext, Xalan-J 
> Interpretive will 
> pass an object which can be queried for context information - 
> including 
> the values of variables and parameters that are in scope.  
> See [1,2,3] for 
> more details.
> 
>      Of course, such code is not portable, potentially even 
> from release 
> to release of Xalan-J.
> 
>      I hope that helps.
> 
> Thanks,
> 
> Henry
> [1] http://xml.apache.org/xalan-j/extensions.html#intro
> [2] http://xml.apache.org/xalan-j/extensions.html#ext-functions
> [3] 
> http://xml.apache.org/xalan-j/apidocs/org/apache/xalan/extensi
ons/ExpressionContext.html

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to