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:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Retrieving param values in xslt
Execting Java methods from XSLT
Out of memory when using transform function on huge xml
Using Saxon implementation for XSLT
render string array in xslt
How can I pass a node as parameter to translets for XSLTC-Processor of Xalan?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013