I am trying to make template that prints all atributes values.
<xsl:template match="@*">
<xsl:value-of select="."/>
</xsl:template>
<!-- override default template for text nodes -->
<xsl:template match="text()">
</xsl:template>
But the output is empty. Why?
Input
<hello name="Dominik">
<help level="Hard"/>
</hello>
Expected output
DominikHard
Real output
EMPTY
No comments:
Post a Comment