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>
何か案は?