title: How do you use XPath to select values based between a range of a specific attribute
body: <p>I have the following xml node that is repeated per  country. Here is an example one:</p>
  
  <pre><code>&lt;country name="Afghanistan" population="22664136" area="647500"&gt;
  </code></pre>
  
  <p>I want to apply a template on a specific set range of data based on the value of the attribute "population". Specifically I want to pull back all that are larger than 9 million (9000000) and smaller than 10 million (10000000).</p>
  
  <p>Im not terribly comfortable yet with XSLT and XPath. Here is what I expected to work:</p>
  
  <pre><code>&lt;xsl:apply-templates select="country[@population &gt; '9000000' and population &lt; '10000000']"/&gt;
  </code></pre>
  
  <p>However this throws an error based on the '&lt;' character in the value range.</p>
  
  <p>I did a bit of google-fu and I couldnt find anything to shed some light on what I should be doing.</p>
  
  <p>Thanks in advance.</p>