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?還有其他方法嗎?
謝謝!