Computational Stylesheet: Beispiel
<xsl:template
match="keywords"
name="tokenToElement">
<xsl:param
name="words" select="concat(.,'
')"/>
<xsl:choose>
<xsl:when
test="string-length($words) > 1">
<keyword>
<xsl:value-of
select="substring-before($words,' ')"/>
</keyword>
<xsl:call-template
name="tokenToElement">
<xsl:with-param
name="words"
select="substring-after($words,' ')"/>
</xsl:call-template>
</xsl:when>
</xsl:choose>
</xsl:template>
Rekursives Template