Check out example codes for "how to pass parameters to xsl file". It will help you in understanding the concepts better.

Code Example 1

//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");

Learn ReactJs, React Native from akashmittal.com