Dave,

It seems that you're not using the correct namespace for the tokenize function. This function is a so-called extension function, not part of the XSLT 1.0 set. See [1] for further details.

-- Santiago

[1] http://xml.apache.org/xalan-j/extensions_xsltc.html#exslt_ext

On Apr 9, 2007, at 12:59 AM, Dave Brosius wrote:

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