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
xs:schema/xs:element[@name=$fieldNameFromXmlFile]/@typeThis is basicly what I need. I try to do it with dynamic Xpath query as $fieldNameFromXmlFile always change. But it did not work. So I thought maybe if I can call javascript I could get the type.