A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
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
How can I pass a node as parameter to translets for XSLTC-Processor of Xalan?
Using Saxon implementation for XSLT
Execting Java methods from XSLT
Out of memory when using transform function on huge xml
render string array in xslt
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014