c# - Xsl: xsl:value-of and email addresses -
it has been long time since have written xsl, have template: <xsl:template match="teammember" mode="author"> <xsl:element name="author"> <xsl:attribute name="email"> <xsl:value-of select="email" /> </xsl:attribute> <xsl:value-of select="email" /> <xsl:value-of select="displayname" /> </xsl:element> </xsl:template> which seems work ok, except 1 thing. output "email" within element not attribute. xml snippet beign matched against looks like: <teammember sequence="1" primaryindicator="yes" personid="102"> <role rank="1">analyst</role> <lastname>yyy</lastname> <firstname>xxx</firstname> <middlename /> <position /> <clientcode /> <division id="1" code="equity resear...