title: Restrict output by range in XSLT
body: <p>I am creating an XSLT and i want to select a particular node, only if one of its child element's value is between a range. The range is to be specified using parameters in the xsl file.</p>
  
  <p>The XML file is like</p>
  
  <pre><code>&lt;root&gt;
   &lt;org&gt;
    &lt;name&gt;foo&lt;/name&gt;
    &lt;chief&gt;100&lt;/chief&gt;
   &lt;/org&gt;
   &lt;org parent="foo"&gt;
    &lt;name&gt;foo2&lt;/name&gt;
    &lt;chief&gt;106&lt;/chief&gt;
   &lt;/org&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>The XSLT so far is</p>
  
  <pre><code>&lt;xsl:param name="fromRange"&gt;99&lt;/xsl:param&gt;
  &lt;xsl:param name="toRange"&gt;105&lt;/xsl:param&gt;
  
  &lt;xsl:template match="/"&gt;
      &lt;xsl:element name="orgo"&gt;
          &lt;xsl:apply-templates select="//org[not(@parent)]"/&gt;
      &lt;/xsl:element&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>I want to restrict the org node from being processed whose &lt; chief > node's value is not in range</p>