title: XSLT Count() between two values
body: <p>I am trying to get a count between range of 100 to 199 (both are inclusive) for an attribute, but I am unable to join two results. Please help me out</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;catalog&gt;
  &lt;cd&gt;
      &lt;title code="120"&gt;Empire Burlesque&lt;/title&gt;
      &lt;artist&gt;Bob Dylan&lt;/artist&gt;
      &lt;country&gt;USA&lt;/country&gt;
      &lt;company&gt;Columbia&lt;/company&gt;
      &lt;price&gt;10.90&lt;/price&gt;
      &lt;year&gt;1985&lt;/year&gt;
  &lt;/cd&gt;
  &lt;cd&gt;
      &lt;title code="200"&gt;Hide your heart&lt;/title&gt;
      &lt;artist&gt;Bonnie Tyler&lt;/artist&gt;
      &lt;country&gt;UK&lt;/country&gt;
      &lt;company&gt;CBS Records&lt;/company&gt;
      &lt;price&gt;9.90&lt;/price&gt;
      &lt;year&gt;1988&lt;/year&gt;
  &lt;/cd&gt;
  &lt;cd&gt;
      &lt;title code="100"&gt;Greatest Hits&lt;/title&gt;
      &lt;artist&gt;Dolly Parton&lt;/artist&gt;
      &lt;country&gt;USA&lt;/country&gt;
      &lt;company&gt;RCA&lt;/company&gt;
      &lt;price&gt;19.90&lt;/price&gt;
      &lt;year&gt;1982&lt;/year&gt;
  &lt;/cd&gt;
  &lt;/catalog&gt;
  </code></pre>
  
  <p>The XSLT for above XML is</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;xsl:value-of select="count(//cd/title[@code &amp;gt;= 100 and 199 &amp;lt;= @code])"/&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>Please help me out to resolve this problem</p>