从param xslt分配给变量 [英] assign to variable from param xslt

查看:67
本文介绍了从param xslt分配给变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的xslt文件中我有



 <  < span class =code-leadattribute> xsl:param     name   =  htmlPath      /  >  









 <   xsl:variable     name   =  filename    /  >  





假设htmlPath的值是C:\ Users \\Desktop \。

如何将变量文件名指定为htmlPath +abc.html

解决方案

 <   xsl:variable    名称  =  filename   选择  =  concat(

htmlPath,@ abc,'。html') / >


in my xslt file I have

<xsl:param name="htmlPath"  />



and

<xsl:variable name="filename" />



suppose value of htmlPath is "C:\Users\\Desktop\".
How can I assign variable filename as htmlPath+"abc.html"

解决方案

<xsl:variable name="filename" select="concat(


htmlPath,@abc,'.html')" />


这篇关于从param xslt分配给变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆