I'm write an .xsl to transform an .xml to xhtml file, and an xml fragment is
like this:
<user login="codename ">
<link target="http://www.my.addr.com/~codename" />
James Cook
</link>
</user>
I want to display "codename@my.ad dr.com" as the email address, so I write the
following xsl to achieve this:
....
<xsl:template match="user">
Name:
<xsl:apply-templates select="link" />
<br/>
Email:
<xsl:value-of select="@login" />
@my.addr.com
</xsl:template>
<xsl:template match="link">
<a href="{@target} ">
<xsl:value-of select="." />
</a>
</xsl:template>
But there's a space between username and the domain name in mail address. Can I
fix it? Thank you.
Comment