0
我想看到的第一对夫妇的变量“VARI”的人物要连接到的字符串ABC =”在这里:如何连接(的一部分)变量字符串在XSLT
href="{concat('abc=', substring-before('vari', '='))}"
这里整个片段:
<xsl:template match="report:subelement">
<tr>
<td>
<message>
<xsl:variable name="vari" select="."></xsl:variable>
<xsl:copy-of select="." />
</message>
</td>
<td>
<button type="button" onclick="window.location.href=this.getAttribute('href')" href="{concat('abc=', substring-before('vari', '='))}" >Kill thread</button>
</td>
</tr>
</xsl:template>
这可能是一个微不足道的问题,但我只是在学习xslt。
感谢,但如果我声明一个变量怎么能值以后分配给它? –
你不能。变量的值不可更改。也许你应该用更完整的例子更新你的问题。 –
然后我不明白。如果我不能分配一个值,那我以后可以读取什么? –