[
https://issues.apache.org/jira/browse/XALANJ-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681322#action_12681322
]
Martin von Gagern commented on XALANJ-1847:
-------------------------------------------
I encounter similar issues. Looks like a reference type could never be used as
a this argument.
I'm currently trying to write a patch, but as this seems a major operation, I'm
not sure I'll succeed.
> Transform.setParameter doesn't function as an extension mecanism
> ----------------------------------------------------------------
>
> Key: XALANJ-1847
> URL: https://issues.apache.org/jira/browse/XALANJ-1847
> Project: XalanJ2
> Issue Type: Bug
> Security Level: No security risk; visible to anyone(Ordinary problems in
> Xalan projects. Anybody can view the issue.)
> Components: Xalan-extensions
> Affects Versions: 2.6
> Environment: Operating System: All
> Platform: All
> Reporter: François Lemaire
> Assignee: Xalan Developers Mailing List
>
> I don't know if that can be called a bug or if it is a proposed extension,
> but
> this bothers me. I've tried to do pass an object by calling
> myTransformer.setParameter, then in my stylesheet call a method defined in my
> object, but I got a NoSuchMethodError telling me that my method didn't exist
> in
> java.lang.String. My guess is that params are transformed into String objects
> before being passed to the stylesheet. It's annoying, because I'd like to
> pass
> an extension object to the stylesheet from my java code rather than having
> package and class names written in the stylesheet; if I want to change the
> implementation of the interface implemented by my object (which is an URL
> rewriting helper), I have to change package and function names everywhere in
> my
> stylesheets!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]