<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform">[/URL]
<xsl:output method="text"/>
<xsl:template match="@*|node()">
<xsl:if test="string(name(.)) != '' and string(text()) != ''">
<xsl:value-of select="name(.)"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="text()"/>
<xsl:text>,</xsl:text>
</xsl:if>
<xsl:apply-templates select="@*|node()"/>
</xsl:template>
</xsl:stylesheet>