Reputation: 545
I must have a return value from javascript function. Is there a way to do this without using additional libraries. What I tried:
<xsl:variable name="fieldOf">
<xsl:value-of select="name()"/>
</xsl:variable>
<xsl:variable name="type">
<xsl:value-of>
<script type="text/javascript">
getTypeFromXSDFile(<xsl:value-of select="$fieldOf"/>)
</script>
</xsl:value-of>
</xsl:variable>
So that I can use return value of javascript function.
Thanks
Upvotes: 0
Views: 7047
Reputation: 243549
No, Not in pure XSLT.
Some XSLT processors provide their own way to call Javascript (or other language) functions. For example, all Microsoft XSLT processors provide the <msxsl:script>
element.
Upvotes: 2