using variable value in href XSL

xml, xslt

Solution

You need to combine your two approaches:

<xsl:variable name="NAME">yourValue</xsl:variable>
<a href="{$NAME}" />

Problem

I knw its pretty basic question but I have just started reading it... I have a variable name ``` <variable name="NAME"> http://www.yahoo.com/<xsl:value-of select="$someothervariable"/> </variable> ``` and i want to use it in like this I have used these two approaches but it didn't work ``` <a href="{NAME}">HELLO</a> <a href="<xsl:value-of select="$NAME"/> ``` Any idea how to achieve this... Thanks,

Original source