0
我在迭代XSLT中的鍵值時遇到問題。我有這樣一行:嘗試基於XSLT中的鍵迭代一組元素
<xsl:key name="group" match="Orders" use="number" />
,並在此之後:
<xsl:variable name="orderNodes">
<xsl:copy-of select="key('group', number)" />
</xsl:variable>
我想這個迭代:
<xsl:for-each select="$orderNodes/Orders">
<xsl:value-of select="number" />
</xsl:for-each>
但我得到一個錯誤:
ERROR: 'Could not compile stylesheet'
FATAL ERROR: 'Could not compile stylesheet'
:Error checking type of the expression 'FilterParentPath(variable-ref(groupNodes/result-tree), step("child", 14))'.
javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
我做錯了什麼?
我更新了我的代碼中的錯誤。 – ttdol2506