I have a custom function in my XSLT document like so:
<msxsl:script language="JScript" implements-prefix="custom">
function uriencode(string) {
return encodeURIComponent(string);
</msxsl:script>
When I try passing it the value of a node like this:
<xsl:variable name="urlp" select="Path/To/Some[@attr='condition']/Node" />
<xsl:value-of select="custom:uriencode($urlp)" />
It gives me this result:
MS.Internal.Xml.XPath.XPathSelectionIterator
So I gather that I haven't passed the actual value of the Node
to my function, but how do I do that? Or alternatively, retrieve the value of the node from the object that's being passed to my function?