Here is a sample XSLT 1.0 stylesheet that uses the local-name function to output the local name of all element nodes:
Code:
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:for-each select="//*">
<xsl:value-of select="concat(local-name(), '#13;#10;')"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>