• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Retrieving param values in xslt

 
john mattucci
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

//Transformer.setParameter(String 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
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic