title: xslt reading from xml separate elements, not working
body: <p>I got an xml like this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;movies&gt;
   &lt;!-- 1 --&gt;
      &lt;movie&gt;      
          &lt;movieID&gt;0108052&lt;/movieID&gt;     
          &lt;title&gt;Schindler's List&lt;/title&gt;
          &lt;director&gt;Steven Spielberg&lt;/director&gt;  
          &lt;year&gt;1993&lt;/year&gt;
          &lt;genre&gt;Biography, &lt;/genre&gt;
    &lt;genre&gt;Drama, &lt;/genre&gt;
    &lt;genre&gt;History&lt;/genre&gt;
    &lt;link&gt;http://www.imdb.com/title/tt0108052/&lt;/link&gt;
      &lt;/movie&gt;
   &lt;!-- 2 --&gt;
      &lt;movie&gt;      
          &lt;movieID&gt;0914798&lt;/movieID&gt;     
          &lt;title&gt;The Boy in the Striped Pajamas&lt;/title&gt;
          &lt;director&gt;Mark Herman&lt;/director&gt;  
          &lt;year&gt;2008&lt;/year&gt;
          &lt;genre&gt;Biography, &lt;/genre&gt;
    &lt;genre&gt;Drama, &lt;/genre&gt;
    &lt;genre&gt;History&lt;/genre&gt;
    &lt;link&gt;http://www.imdb.com/title/tt0914798/&lt;/link&gt;  
      &lt;/movie&gt;
  &lt;/movies&gt;
    </code></pre>
  </div>
  </div>
  </p>
  
  <p>Now it should read it and output it like this: (different movie to show variety)</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;tr bgcolor="#3D9999"&gt;
    &lt;td&gt;&lt;a href="http://www.imdb.com/title/tt0091369/" target="_blank"&gt;Labyrinth&lt;/a&gt;
    &lt;/td&gt;
    &lt;td&gt;Jim Henson&lt;/td&gt;
    &lt;td&gt;1986&lt;/td&gt;
    &lt;td&gt;Adventure, Family, Fantasy&lt;/td&gt;
    &lt;td&gt;0091369&lt;/td&gt;
  &lt;/tr&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>But instead i am getting this:</p>
  
  <pre><code>  &lt;td&gt;Adventure, &lt;/td&gt;
  </code></pre>
  
  <p>MY xslt looks like this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"&gt;
    &lt;xsl:output method="html" indent="yes" /&gt;
    &lt;xsl:template match="/"&gt;
      &lt;html&gt;
      &lt;!-- Background image --&gt;
      &lt;body background="bgimage.jpg"&gt;
        &lt;h2 style="color:#47B2B2"&gt;My Movie Collection&lt;/h2&gt;
        &lt;h3 style="color:#47B2B2"&gt;Movies After 2005:&lt;/h3&gt;
        &lt;!-- set border, color, and padding Movies after 2005--&gt;
        &lt;table border="1" bgcolor="#0A1A1A" cellpadding="5"&gt;
          &lt;tr bgcolor="#1F4C4C"&gt;
            &lt;!-- Set order --&gt;
            &lt;th&gt;Title&lt;/th&gt;
            &lt;th&gt;Director&lt;/th&gt;
            &lt;th&gt;Year&lt;/th&gt;
            &lt;th&gt;Genre&lt;/th&gt;
            &lt;th&gt;ID&lt;/th&gt;
          &lt;/tr&gt;
          &lt;xsl:for-each select="movies/movie"&gt;
            &lt;!-- Sort by title --&gt;
            &lt;xsl:sort select="title" /&gt;
            &lt;xsl:if test="year&gt;=2005"&gt;
              &lt;tr bgcolor="#3D9999"&gt;
                &lt;td&gt;
                  &lt;!-- Look for link, target to blank, the link text is the tittle pulled from xml --&gt;
                  &lt;a href="{link}" target="_blank"&gt;
                    &lt;xsl:value-of select="title" /&gt;
                  &lt;/a&gt;
                &lt;/td&gt;
                &lt;td&gt;
                  &lt;xsl:value-of select="director" /&gt;
                &lt;/td&gt;
                &lt;td&gt;
                  &lt;xsl:value-of select="year" /&gt;
                &lt;/td&gt;
                &lt;td&gt;
                  &lt;xsl:value-of select="genre" /&gt;
                &lt;/td&gt;
                &lt;td&gt;
                  &lt;xsl:value-of select="movieID" /&gt;
                &lt;/td&gt;
              &lt;/tr&gt;
            &lt;/xsl:if&gt;
          &lt;/xsl:for-each&gt;
        &lt;/table&gt;
      &lt;/body&gt;
      &lt;/html&gt;
    &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Line 47 handles how it should read it, but well it does not work it only reads the first one.</p>