L
LW
I'm using the following free implementation of an XSLT "split" function,
as a template:
http://www.exslt.org/str/functions/split/str.split.template.xsl.html
Basically, it allows me to call it like this...
<xsl:call-template name="str:split">
<xsl:with-param name="string" select="string('boy,cat,dog')" />
<xsl:with-param name="pattern" select="string(',')" />
</xsl:call-template>
....and it returns the following node...
<token>boy</token>
<token>cat</token>
<token>dog</token>
Works like a charm, but how do I take that node of <token>'s and do
further processing on it? For instance, I'd like to convert that into...
<word num="1">boy</word>
<word num="2">cat</word>
<word num="3">dog</word>
I'd prefer to avoid editing the str:split template directly, because it'd
be best if that were left generic as it is.
Seems to me I'm missing something profoundly basic here. Thanks in advance
for any help.
LW
as a template:
http://www.exslt.org/str/functions/split/str.split.template.xsl.html
Basically, it allows me to call it like this...
<xsl:call-template name="str:split">
<xsl:with-param name="string" select="string('boy,cat,dog')" />
<xsl:with-param name="pattern" select="string(',')" />
</xsl:call-template>
....and it returns the following node...
<token>boy</token>
<token>cat</token>
<token>dog</token>
Works like a charm, but how do I take that node of <token>'s and do
further processing on it? For instance, I'd like to convert that into...
<word num="1">boy</word>
<word num="2">cat</word>
<word num="3">dog</word>
I'd prefer to avoid editing the str:split template directly, because it'd
be best if that were left generic as it is.
Seems to me I'm missing something profoundly basic here. Thanks in advance
for any help.
LW