Doing a double-pass in XSL?

后端 未结 2 953
忘了有多久
忘了有多久 2021-01-14 10:39

Is it possible to store the output of an XSL transformation in some sort of variable and then perform an additional transformation on the variable\'s contents? (All in one X

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-14 10:55

    Yes, with XSLT 2.0 it is easy. With XSLT 1.0 you can of course also use modes and store a temporary result in a variable the same way as in XSLT 2.0 but the variable is then a result tree fragment, to be able to process it further with apply-templates you need to use an extension function like exsl:node-set on the variable.

提交回复
热议问题