Putting an xslt variable into href link

Is there a way to put the value of an xslt variable into an attribute of the html into which your transforming the xml?

For example,

<xsl:variable name="hrefLink" select="hrefLinkNode"/>
<a href="????">MyLink</a>

Is there something I can put into the ???? to have it take the value of $hrefLink?
Who is Participating?
Geert BormansConnect With a Mentor Information ArchitectCommented:
<a href="{$hrefLink}">MyLink</a>

{} are attribute value templates, specially for that
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.