when I apply the transform I get an exception: expression must evaluate to a node-set.
<xsl:for-each select = "some expression">
<xsl:variable name="a0" select="some expression"/>
<xsl:variable name="a1" select="some expression"/>
<xsl:variable name="a2" select="some expression"/>
<xsl:for-each select="$a0 | $a1 | $a2">
<xsl:value-of select="."/>
<xsl:if test="position()!=last()">,</xsl:if>
</xsl:for-each>
</xsl:for-each>
Now, if I were to take the if statement and place it at the level of the first loop, the transform can be applied properly.
If the problem is that the expression "$a0 | $a1 | $a2" is not considered a nodeset, how can I accomplish a similar goal using XSLT 1.0?