【发布时间】:2017-08-22 00:47:25
【问题描述】:
在 myVar2 中使用 myVar1 变量需要什么 xsl?我正在使用 xsl 转换来生成新的样式表。
<xsl:element name="variable"><xsl:attribute name="myVar1">test value</xsl:attribute> </xsl:element>
<xsl:element name="variable">
<xsl:attribute name="myVar2" />
<xsl:element name="xsl:value-of">
<xsl:attribute name="select">
/root/child[@myattr1='$myVar1']/@value <!--Help here-->
</xsl:attribute>
</xsl:element>
</xsl:element>
</xsl:template>
【问题讨论】: