title: XSLT: Foreach iterates for each item, but displays the value of the first item?
body: <p>I have a item list and for each item I want to make it an url.</p>
  
  <p>List:</p>
  
  <pre><code> &lt;root&gt;
     &lt;tags&gt;
       &lt;tag&gt;open source&lt;/tag&gt;
       &lt;tag&gt;open&lt;/tag&gt;
       &lt;tag&gt;advertisement&lt;/tag&gt;
       &lt;tag&gt;ad&lt;/tag&gt;
     &lt;/tags&gt;
   &lt;/root&gt;
  </code></pre>
  
  <p>XSLT:</p>
  
  <pre><code>&lt;xsl:template match="*"&gt;
      &lt;div class="tags"&gt;
        &lt;xsl:for-each select="/post/tags/tag"&gt;
            &lt;a href="#"&gt;
              &lt;xsl:value-of select="//tag"/&gt;
            &lt;/a&gt;
        &lt;/xsl:for-each&gt;
      &lt;/div&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>  &lt;div class="tags"&gt; 
      &lt;a href="#"&gt;open source&lt;/a&gt; 
      &lt;a href="#"&gt;open source&lt;/a&gt; 
      &lt;a href="#"&gt;open source&lt;/a&gt; 
      &lt;a href="#"&gt;open source&lt;/a&gt; 
    &lt;/div&gt; 
  </code></pre>
  
  <p>What am I doing wrong?</p>