2
我要动态地改变基于源XML的属性的应用模板模式,就像这样:XSLT模板模式 - XPath计算
<xsl:choose>
<xsl:when test="@myAttribute">
<xsl:apply-templates select="." mode="@myAttribute"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="." mode="someOtherMode"/>
</xsl:otherwise>
</xsl:choose>
是否有可能以评估模式属性中的XPath?还有其他方法吗?
谢谢!