title: x path not counting second element
body: <p>i have a xpath set to search for the first and second heading however the second comes up as blank, im guessing this must be pretty easy however ive tried changing the path names so many times and i cant seem to solve it, i then used a for each to find out if maybe my xml file was incorrect but my  loop seems to find both with ease. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;xsl:transform version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:foo="blogschema.xsd"
  exclude-result-prefixes="foo"&gt;
  &lt;xsl:output method ="html" indent ="no"/&gt; 
  &lt;xsl:template match="/"&gt;
  &lt;html&gt;
  &lt;link rel ="stylesheet" type="text/css" href="blogStyle.css"/&gt;
      &lt;body&gt;
      &lt;ul class="menu"&gt;
      &lt;li&gt;&lt;a href="#" class ="Part 1"&gt;&lt;xsl:value-of select="//foo:Heading[1]"/&gt; &lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#" class ="Part 2"&gt;&lt;xsl:value-of select="//foo:Heading[2]"/&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  
  
  
  
  
  
          &lt;div id="heading"&gt;
  
          &lt;xsl:for-each select="//foo:Entry"&gt;
          &lt;!--&lt;xsl:sort select="Heading"/&gt; --&gt;
  
  
          &lt;div class ="topNavigation"&gt;&lt;a href="#home"&gt;&lt;h3&gt;&lt;xsl:value-of    select="foo:Heading"/&gt;&lt;/h3&gt;&lt;/a&gt;&lt;/div&gt;
  
          &lt;/xsl:for-each&gt;
          &lt;div class ="panes"&gt;
  
  
  
  
          &lt;/div&gt;
  
          &lt;/div&gt;
          &lt;div id ="blogpicture"&gt;
              &lt;div class="picture"&gt;
                  &lt;div id="headerTitle"&gt;&lt;h2&gt;&lt;xsl:value-of        select="//foo:Title"/&gt;&lt;/h2&gt;&lt;/div&gt;
                  &lt;/div&gt;
                  &lt;/div&gt;
  
  
      &lt;/body&gt;
      &lt;/html&gt;
  &lt;/xsl:template&gt;
  &lt;/xsl:transform&gt;
  </code></pre>
  
  <p>im trying to get a menu but all im getting right now is part 1 of the menu, in the for loop i can get part 2.A alternative could be to stick to using the loop, and as i'm looping change the class somehow during the loop(incrment the class id)
      
      
      
      
      
      
      My blog</p>
  
  <pre><code>&lt;Entry&gt;
      &lt;Heading id="101"&gt;Part 1&lt;/Heading&gt;  
      &lt;body&gt;
          &lt;text&gt;something interesting&lt;/text&gt;
          &lt;pictures&gt;pictures in the body&lt;/pictures&gt;
          &lt;videos&gt;Videos in the body&lt;/videos&gt;
      &lt;/body&gt;
      &lt;labels&gt;Seperate labels with commas&lt;/labels&gt;
      &lt;date&gt; 20121119&lt;/date&gt;
      &lt;location&gt;The location the blog was published&lt;/location&gt;
  
  &lt;/Entry&gt;
  
  &lt;Entry&gt;
      &lt;Heading id="102"&gt;Part 2&lt;/Heading&gt;
          &lt;body&gt;
              &lt;text&gt;something&lt;/text&gt;
              &lt;pictures&gt;pictures in the body&lt;/pictures&gt;
              &lt;videos&gt;Videos in the body&lt;/videos&gt;
          &lt;/body&gt;
      &lt;labels&gt;Seperate labels with commas&lt;/labels&gt;
      &lt;date&gt; 2012-11-26Z&lt;/date&gt;
      &lt;location&gt;The location the blog was published&lt;/location&gt;
  
  &lt;/Entry&gt;
  
  
  &lt;author&gt;me&lt;/author&gt;
  </code></pre>
  
  <p></p>
  
  <p>i hope this makes some sense
  the output im currently getting in the menu u is part 1 and then "" for where i'm meant to have part 2. The for each loop in the xsl however brings part 1 and 2 headings</p>