你当然可以.xsl:param
在xsl:stylesheet
元素中使用element 并从XSL引擎传递参数.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="url"/>
Run Code Online (Sandbox Code Playgroud)
然后使用字符串函数,例如:
<xsl:variable name="right-part" select="substring-after($url, 'myVar=')"/>
<xsl:value-of select="substring-before(substring-before($right-part, 'myVar2='), '&')"/>
<xsl:text>|</xsl:text>
<xsl:value-of select="substring-after($right-part, 'myVar2=')"/>
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
18566 次 |
最近记录: |