how to pass parameters to xsl file code example
Example: 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");