xsl:variable as xpath value for other xsl tag

后端 未结 3 895
广开言路
广开言路 2020-12-09 17:23

I\'m having issues with xsl:variable. I want to create a variable with a value that depends on the value of another XML node attribute. This working good. But w

3条回答
  •  情书的邮戳
    2020-12-09 18:13

    This is not natively possible in XSLT 1.0, but you can use an extension library such as dyn:

    http://www.exslt.org/dyn/functions/evaluate/dyn.evaluate.html

    The dyn:evaluate function evaluates a string as an XPath expression.

提交回复
热议问题