Hi everyone, I need your help.

This is the xml output:

Code:
<xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" 
 xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" 
 xmlns:rs="urn:schemas-microsoft-com:rowset" 
 xmlns:z="#RowsetSchema">
	<s:Schema id="RowsetSchema">
		<s:ElementType name="row" 
 content="eltOnly" rs:CommandTimeout="30">
			<s:AttributeType name="ID" 
 rs:number="1" rs:nullable="true" rs:writeunknown="true">
				<s:datatype dt:type="int" 
 dt:maxLength="4" rs:precision="10" rs:fixedlength="true"/>
			</s:AttributeType>
			<s:AttributeType name="CODICE" 
 rs:number="2" rs:nullable="true" rs:writeunknown="true">
				<s:datatype 
 dt:type="string" rs:dbtype="str" dt:maxLength="255"/>
			</s:AttributeType>

			<s:extends type="rs:rowbase"/>
		</s:ElementType>
	</s:Schema>
		
<rs:data>
                <z:row ID="1" CODE="23982" />
		<z:row ID="2" CODE="23977" />
		<z:row ID="3" CODE="23976" />
	</rs:data>
</xml>
I need save transform this xml file in the txt file with xsl file:
Code:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" 
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns:rs="urn:schemas-microsoft-com:rowset" 
 xmlns:z="#RowsetSchema">
<xsl:output omit-xml-declaration="yes"/>
<xsl:template match="/">
        <xsl:for-each select="/xml/rs:data/z:row">
                <xsl:for-each select="@*">
                        <xsl:value-of select="."/>      
                        <xsl:text>, </xsl:text>
                </xsl:for-each>
        </xsl:for-each>
</xsl:template>
</xsl:stylesheet>
But I have this output incorrect: 1, 23982, 2, 23977, 3, 23976

The output correct for me this is:

1, 23982
2, 23977
3, 23976
Can you help me?

Thanks in advance.
Viki