我用BaseX创建了一个XSLT文件,但是函数“insert-before”无法识别。这是一个标准函数(您可以在此处查看:http://www.w3schools.com/xpath/xpath_functions.asp),我也尝试声明fn名称空间,如下所示:
xmlns:fn="http://www.w3.org/2005/xpath-functions"
然后使用fn:insert-before调用该函数,但它仍然无法工作。这是我的代码样例:
<xsl:call-template name="temp">
....
<xsl:with-param name="array" select="fn:insert-before($array,$count+1,$succ)"/>
...
</xsl:call-template>
有什么想法吗?