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/extensions/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]