So you have a custom tag that does XSL transformations. Your question must be how to pass an XSLT parameter to that custom tag, then?
Basically, your question should be addressed to the author of the custom tag, if there is no documentation available. It's possible the author didn't provide a way to pass parameters. Or it's possible they did, too. But there's no way for anybody to tell unless they know something about the tag.
Joined: Feb 04, 2006
no no no.. I don't need to pass XSLT param to tag, I need to pass param grabbed from query string in url to XSL stylesheet...
this is what it is:
AffData = request.getParameter("AffiliateData");
this param I need to pass to XSL specified in the tag (tag is in same JSP where code is to grab param..)
Well, normally in Java you "pass a parameter to a stylesheet" by calling the setParameter() method on the Transformer that is applying the stylesheet.
But when you said your problem involved a custom tag, I assumed (based on absence of any other information) that the custom tag would be the one constructing the Transformer and doing the XSL transformation. If that is the case, then you would have to give the parameters to the custom tag and let it call the setParameter() method.
Is that correct? If so then talk to the person who wrote the tag.
If not, then post your code that is creating a Transformer.