XSLT ドキュメントに次のようなカスタム関数があります。
<msxsl:script language="JScript" implements-prefix="custom">
function uriencode(string) {
return encodeURIComponent(string);
</msxsl:script>
次のようなノードの値を渡そうとすると:
<xsl:variable name="urlp" select="Path/To/Some[@attr='condition']/Node" />
<xsl:value-of select="custom:uriencode($urlp)" />
それは私にこの結果を与えます:
MS.Internal.Xml.XPath.XPathSelectionIterator
の実際の値を関数に渡していないことNode
がわかりましたが、どうすればそれを行うことができますか? または、関数に渡されているオブジェクトからノードの値を取得しますか?