📜  如何将参数传递给 xsl 文件 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:20.858000             🧑  作者: Mango

代码示例1
//On xsl declare:
//

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