XSLT 1.0
<xsl:template match="player">
<name>
<xsl:value-of select="substring-before(@name, ', ')" />
<xsl:text>, </xsl:text>
<xsl:value-of select="substring(substring-after(@name, ', '), 1, 1)" />
<xsl:text>.</xsl:text>
</name>
</xsl:template>
Или, если вы предпочитаете:
<xsl:template match="player">
<name>
<xsl:variable name="last" select="substring-before(@name, ', ')" />
<xsl:value-of select="substring(@name, 1, string-length($last) + 3)" />
<xsl:text>.</xsl:text>
</name>
</xsl:template>