XSLT question PLEASE?

<Person>
<Name>John Smith</Name>
<Title>Student</Title>
<EMail>
<EMailLink>john.smith@microsof...
<EMailText>John Email</EMailText>
</EMail>
<RoomNumber>111</RoomNumber>
</Person>
I want to have the displayed result for the EMAIL appears as what
this html code appears
<a href="mailto:john.smith@micros... Email</a>
when you click on John Email it links to john.smith@microsoft.com
This code has this effect:
<a href="mailto:john.smith@micros...
I want to change this code to display "John Email"

<xsl:if test="EMail != """>
<br/>Email:
<xsl:for-each select="EMail/EmailText">
<a>
<xsl:attribute name="href">
<xsl:text disable-output-escaping="yes">...
<xsl:for-each select=".">
</xsl:attribute>
<xsl:apply-templates/>
</a>

</xsl:for-each>
</xsl:if>
with as minimal change to the code as possible
THANKS A LOT
YOUR SERIOUS HELP WILL BE MUCH MUCH APPRECIATED

Additional Details

1 week ago
So helpful!
It worked!
THANKS :)By H

don't get many xsl questions here... but
<xsl:if test="EMail">
<br/>Email:
<a href="mailto:{EMailLink}">
<xsl:value-of select="EMail/EmailText">
</a>
</xsl:if>
should do the trick!

Source(s):
I am an XSL geek!

1 week ago