1<xsl:stylesheet version="1.0" 2 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 xmlns:fo="http://www.w3.org/1999/XSL/Format"> 4 5<xsl:strip-space elements="namelist"/> 6 7<xsl:template match="namelist/name"> 8 <xsl:apply-templates/> 9 <xsl:if test="not(position()=last())">, </xsl:if> 10</xsl:template> 11</xsl:stylesheet> 12