If you have:
<name>Alex</name>
You shouldn't do this:
<xsl:template match="name"> <name><xsl:value-of select="."/></name> </xsl:template>
But rather, do this:
<xsl:template match="name"> <name><xsl:apply-templates/></name> </xsl:template>
Rule: Only use xsl:value-of when you absolutely have to do so.