简体   繁体   中英

How to pass arguments to xslt?

Is there any way to pass any argument to xslt? For example I need to filter some elements, and I want to be able to change filtering condition.

Preferably without js.

当然,在样式表中使用顶级<xsl:param name="param-name"/>元素在样式表中定义全局参数,然后在运行之前检查您喜欢的XSLT处理器API的文档,了解如何设置这些参数。转型。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM