Dave Brosius asked about: <xsl:for-each select="tokenize($input, ',')"> <xsl:element name="{name(.)}"/> </xsl:for-each>
In addition to needing a namespace qualifier for the tokenize function, I think you probably meant to extract the value of each node, rather than the name. If tokenize is returning a node-list, they would likely be anonymous nodes. How about this? <xsl:element name="{string(.)}"/> .................David Marston