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 research" name="equity research" /> <office id="1" name="" time_zone_name="(gmt-5:00) eastern time (us & canada)" time_zone_short="est" /> <displayname>xxx yyy</displayname> <phone></phone> <email>xxx.yyy@zzz.com</email> </teammember>
i using .net 4.0.
nevermind. upstream bug. sorry.
Comments
Post a Comment