File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
Retrieving param values in xslt
Joined: Nov 03, 2000
Sep 06, 2006 15:03:00
I was wondering if it was possible to retrieve paramaters which were set through the following code below in the xslt? If yes how would I do that
name, Object value)
Transformer.setParameter("test", new String("test"))
I'm trying to set a parameter based on the user and then use this help xpath find the appropriate node.
Thank you for your time
Joined: Oct 14, 2005
Sep 06, 2006 16:44:00
You would declare each one as a top-level <xsl:param> element in your XSLT code, like for your example:
The name attribute, in this case "test", would be the first parameter of the setParameter call.
I agree. Here's the link:
subject: Retrieving param values in xslt
Out of memory when using transform function on huge xml
Using Saxon implementation for XSLT
Execting Java methods from XSLT
How can I pass a node as parameter to translets for XSLTC-Processor of Xalan?
render string array in xslt
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015