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
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.