I have a variable $colors that is a string
<xsl:variable name="colors" select="'red,green,blue,'" />
I need a new variable, $colorElements that is a node-set
<color>red</color>
<color>green</color>
<color>blue</color>
(Is that right? Can a node-set have no root?)
$colorElements
will never be output directly. I just need it as, effectively, a list variable.
XSLT 1.0 with no extensions other than node-set()
.