| you always have to think differently with xsl!
perhaps you need to have the resultant tree be <tag1> with the text of every subnode separated by a comma... in that case the code is much simpler.
are you in the biz or learning in school? have you made any attempts? post what you have tried.
here's a hint!
<onetag>
<xsl:for-each select="manytags">
<xsl:value-of select="."/>
<xsl:if test="position()!=last()">,</xsl:if>
</xsl:for-each>
</onetag>
does that help? |