title: XPath headache, find nodes with attributes between a range
body: <p>Head hurts on this one so can someone throw me a line?</p>
  
  <p>XML is like so (not the real stuff but this is an example for clarity):</p>
  
  <pre><code>&lt;root&gt;
      &lt;groups name="A"&gt;
          &lt;entry from="1" to="10" /&gt;
      &lt;/groups&gt;
      &lt;groups name="A"&gt;
          &lt;entry from="11" to="20" /&gt;
          &lt;entry from="21" to="30" /&gt;
      &lt;/groups&gt;
      &lt;groups name="A"&gt;
          &lt;entry from="31" to="40" /&gt;
          &lt;entry from="41" to="50" /&gt;
          &lt;entry from="51" to="60" /&gt;
      &lt;/groups&gt;       
  &lt;/root&gt;
  </code></pre>
  
  <p>Given a entry number I want to find the entry node that this number falls between. There should only be one node that matches (if any).</p>
  
  <p>Heres the xpath I'm using:</p>
  
  <p>/root/groups/entry[@from >= 45 and @to &lt;= 45]</p>
  
  <p>I've tried wrapping the attributes in number() too but still no luck.</p>
  
  <p>This is not returning what I'd expect, infact it returns nothing and I can't see why! What am I missing?</p>
  
  <p>Edit: Corrected my typo of the opening groups tags...sorry.</p>