Answers for "how to pass parameters to xsl file"

0

how to pass parameters to xsl file

//On xsl declare:
//<xsl:param name="category"/>

//On xsl use the parameter like:
//select="/form/*[name()=$category]/Question-Category

//Then pass it from Java like this (assuming you are using the JAXP API):
transformer.setParameter("category", "a");
Posted by: Guest on June-05-2020

Code answers related to "how to pass parameters to xsl file"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language