title: read elements with same name but different attributes
body: <p>I'm trying to print out the phone numbers of the people in my XML file.</p>
  
  <p>These are the elements that i want to print out</p>
  
  <pre><code>&lt;telefon typ="home"&gt;11111111&lt;/telefon&gt;
  &lt;telefon typ="work"&gt;23232323&lt;/telefon&gt;
  &lt;telefon typ="cell"&gt;95959595&lt;/telefon&gt;
  </code></pre>
  
  <p>But I only manage to print out one of them. Of course the first one.</p>
  
  <p>This is my XSL file</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="iso-8859-1"?&gt;
  &lt;xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  &lt;xsl:template match="/"&gt;
  &lt;html&gt;
  &lt;body&gt;
  &lt;h1&gt;Lista över &lt;xsl:value-of select="count(/*/*/namn)"/&gt; personer&lt;/h1&gt;&lt;br /&gt;
  &lt;xsl:for-each select="//person[namn]" &gt;
  &lt;h2&gt;Person
  &lt;xsl:value-of select="position()" /&gt;
  &lt;xsl:text&gt;: &lt;/xsl:text&gt;
  &lt;xsl:value-of select="namn" /&gt;&lt;/h2&gt;
  &lt;h3&gt;Kontaktuppgifter: &lt;/h3&gt;
  Gata: &lt;xsl:value-of select="adress/gata" /&gt;
  &lt;br /&gt;
  Postnr: &lt;xsl:value-of select="adress/postnr" /&gt;
  &lt;xsl:text&gt; &lt;/xsl:text&gt;
  &lt;xsl:value-of select="adress/postort" /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  &lt;xsl:element name="telefon"&gt;
  &lt;xsl:value-of select="telefon/@typ" /&gt; 
  &lt;xsl:text&gt;: &lt;/xsl:text&gt; 
  &lt;xsl:value-of select="telefon" /&gt;
  &lt;/xsl:element&gt;
  &lt;hr /&gt;
  &lt;/xsl:for-each&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>If I change the last element to something like this<br>
  <code>&lt;xsl:value-of select="." /&gt;</code> It  prints out all of the elements, but of course the whole tree structure.</p>
  
  <p>I didn't really wanted to ask here and manage to fix it by my self but after a couple of hours I'm throwing the towel.</p>