Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mark Olbert 87 posts 117 karma points
    Oct 14, 2009 @ 02:52
    Mark Olbert
    0

    Creating Email Link

    How do I create an email hyperlink (<a href="mailto:...">xxx</a>) from within an xslt transform? I'm not sure how to embed the value of a node attribute (e.g., 'contactEmail') in an <a> tag.

     

  • skiltz 501 posts 701 karma points
    Oct 14, 2009 @ 03:28
    skiltz
    0

    <a href="mailto:{string(data [@alias = 'rcMail'])}">name</a>

  • Rasmus Berntsen 215 posts 253 karma points c-trib
    Oct 14, 2009 @ 09:48
    Rasmus Berntsen
    0

    Or you could do it this way:

        <a>
        <xsl:attribute name="href">mailto:<xsl:value-of select="data [@alias = 'contactEmail']"/></xsl:attribute>
        <xsl:value-of select="data [@alias = 'contactName']"/>
        </a>

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies