How to import Javascript object in xslt script

前端 未结 1 958
再見小時候
再見小時候 2021-01-29 10:01

I am using XSLT stylesheet to generate jUnit HTML report which will be sent as an email. Here I want to create Hyperlink in xslt stylesheet and the value of a link is available

相关标签:
1条回答
  • 2021-01-29 10:58

    Your XSLT code is generating Javascript code: that part is fine. But until the stylesheet has finished execution, and the generated Javascript is executed, the objects and values created by the Javascript code don't exist yet. The XSLT code therefore can't access any of these JS values.

    So your XSLT code can't access the value of cur['adm-lib']. It can, however, access data in your original source document: which as far as I can see is simply @value.

    0 讨论(0)
提交回复
热议问题