Huh? Just use the same transformer.setParameter() method you were using before.
JAXP (or TrAX, or the javax.xml.transform* packages) is precisely meant for this situation. Xalan implements the Templates and Transformer objects in one way, and is highly conformant. Our new xsltc code also implements the same classes - under the covers by using translets. But unless you want to do really custom caching of the translets themselves, you should simply be able to use the same exact JAXP-calling code to use xsltc, with simply changing the appropriate system property to use xsltc implementation instead of the xalan one. This is presuming you were using a Xalan 2.x build previously; if you're still on 1.x you should upgrade to Xalan 2.x first and then consider using the xsltc stuff. - Shane P.S. And no, there is no Templates.setParameter() method; you cannot mutate templates, only transformers. ---- you "Anand T" <[EMAIL PROTECTED]> wrote ---- Hi All, I have been using xalan at server side(jsp/servlets) for a while now. I set parameters dynamically read from request object before transforming the xml with xsl. Now for performance reasons we are planning to use xsltc. So far my study is that we can create translets offline and then use them for transformation. But i do not see any mechanism on how to pass parameters at transformation when using Translets(Templates). Can somebody pls give some pointers here... ===== <eof aka="mailto:[EMAIL PROTECTED]" quote="A mirror is like a window on the other side of behind you."/> __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com
