Add xsl attribute to HTML tag

09/01/2013 14:28

<a>

    <xsl:attribute name="href">

        <xsl:value-of select="http://server/site/page.aspx" />

    </xsl:attribute>

    My Page

</a>

 

or you can use variable

<xsl:variable name="SafeLinkUrl">https://mylink/page.aspx</xsl:variable>

<a href="{$SafeLinkUrl}">My Safe Link</a>