title: Convert String to xpath in XSLT
body: <p>I find difficulty in converting string to xpath in xslt</p>
  
  <p><strong>XSLT</strong></p>
  
  <pre><code> &lt;xsl:param name="name"/&gt;
  
   &lt;xsl:template match="/"&gt;
      &lt;xsl:if test="$name"&gt;
        &lt;xsl:message&gt;&lt;xsl:value-of select="$name"/&gt;&lt;/xsl:message&gt;
        &lt;xsl:value-of select="$name"/&gt;
      &lt;/xsl:if&gt;
    &lt;/xsl:template&gt;
  </code></pre>
  
  <p>param 'name' value (Xpath expression) will  be passed from java. What should i do in xsl to consider this string as xpath?</p>