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