%26lt;Person%26gt;
%26lt;Name%26gt;John Smith%26lt;/Name%26gt;
%26lt;Title%26gt;Student%26lt;/Title%26gt;
%26lt;EMail%26gt;
%26lt;EMailLink%26gt;john.smith@microsoft.com%26lt;/E...
%26lt;EMailText%26gt;John Email%26lt;/EMailText%26gt;
%26lt;/EMail%26gt;
%26lt;RoomNumber%26gt;111%26lt;/RoomNumber%26gt;
%26lt;/Person%26gt;
I want to have the displayed result for the EMAIL appears as what
this html code appears
%26lt;a href="mailto:john.smith@microsoft.com"%26gt;J... Email%26lt;/a%26gt;
when you click on John Email it links to john.smith@microsoft.com
This code has this effect:
%26lt;a href="mailto:john.smith@microsoft.com"%26gt;j...
I want to change this code to display "John Email"
%26lt;xsl:if test="EMail != """%26gt;
%26lt;br/%26gt;Email:
%26lt;xsl:for-each select="EMail/EmailText"%26gt;
%26lt;a%26gt;
%26lt;xsl:attribute name="href"%26gt;
%26lt;xsl:text disable-output-escaping="yes"%26gt;mailto:%26lt;/x...
%26lt;xsl:for-each select="."%26gt;
%26lt;/xsl:attribute%26gt;
%26lt;xsl:apply-templates/%26gt;
%26lt;/a%26gt;
%26lt;/xsl:for-each%26gt;
%26lt;/xsl:if%26gt;
with as minimal change to the code as possible
THANKS A LOT
YOUR SERIOUS HELP WILL BE MUCH MUCH APPRECIATED
XSLT question PLEASE?internet explorer 7
don't get many xsl questions here... but
%26lt;xsl:if test="EMail"%26gt;
%26lt;br/%26gt;Email:
%26lt;a href="mailto:{EMailLink}"%26gt;
%26lt;xsl:value-of select="EMail/EmailText"%26gt;
%26lt;/a%26gt;
%26lt;/xsl:if%26gt;
should do the trick!
No comments:
Post a Comment