In 2.0, use the string-join() function, or simply
<xsl:value-of select="//Name" separator=","/>
In 1.0 use
<xsl:for-each select="//Name">
<xsl:value-of select="."/>
<xsl:if test="position()!=last()">,</xsl:if>
</
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference