I'm trying to loop over tokens in a comma seperated input parameter. Something like this

<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="input"/>
<xsl:template match="/">
   <test>
   <xsl:for-each select="tokenize($input, ',')">
       <xsl:element name="{name(.)}"/>
   </xsl:for-each>
   </test>
</xsl:template>
</xsl:transform>

I'm getting this

ERROR: 'Error checking type of the expression 'funcall(tokenize, [funcall(string, [parameter-ref(input/reference)]), literal-expr(,)])'.'

FATAL ERROR: 'Could not compile stylesheet'





Could someone point out what i'm doing wrong, please?

Reply via email to