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
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
.