title: xslt assigning variable value to string literal
body: <p>I have </p>
  
  <pre><code>&lt;xsl:for-each select="ancestor-or-self::*"&gt;
    &lt;xsl:variable name="expression" select="name()" &gt;&lt;/xsl:variable&gt;
  &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>below I have href and i want to set the value this expression variable in href #######</p>
  
  <pre><code>&lt;a href="/myplan?expression={$expression}" class="deleteIcon"&gt;Delete&lt;/a&gt;
  </code></pre>
  
  <p>I also tried with :</p>
  
  <pre><code>  &lt;a href="concat('/myplan?expression={',$expression)}" class="deleteIcon"&gt;Delete&lt;/a&gt;
  </code></pre>
  
  <p>None of them worked.</p>
  
  <p>Can Anybody help me out how to do that?</p>
  
  <p>Basically my task is to find the expression for current node and send the expression for the same in href?</p>
  
  <p>Adding More Info :</p>
  
  <pre><code>&lt;br/&gt;&lt;xsl:for-each select="ancestor-or-self::*"&gt;
                 &lt;xsl:variable name="expression" select="name()" /&gt;
              &lt;/xsl:for-each&gt;
          &lt;b&gt;&lt;a href="{concat('/admin/eapp/deleteQuestions?expression=',$expression)}"&gt;&lt;/a&gt;Click Me&lt;/b&gt;
  </code></pre>
  
  <p>when above xsl code is transformed it is giving below error:</p>
  
  <pre><code> Variable or parameter 'expression' is undefined.
  </code></pre>