title: selecting current element name in XSLT
body: <p>I need to output the element name which is being returned after applying the xpath expression for example </p>
  
  <pre><code>&lt;xsl:for-each select="//element"&gt;
        &lt;xsl:value-of select="**{elementname}**"&gt;&lt;/xsl:value-of&gt;
        &lt;xsl:text&gt;:&lt;/xsl:text&gt;
        &lt;xsl:value-of select="current()"/&gt;
        &lt;xsl:value-of /&gt;
  &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>How can i replace <code>{elementname}</code> to some xpath so that I can get the element name instead of current value</p>