title: Filter records in XML using XSLT after occurrence of certain values
body: <p>I am getting below sample xml and I want to fetch all <code>&lt;Student&gt;</code> nodes between starting value <strong><code>&lt;TransactionCode&gt;</code><strong>8</strong><code>&lt;/TransactionCode&gt;</code></strong>
  <strong><code>&lt;RecordType&gt;</code><strong>5</strong><code>&lt;/RecordType&gt;</code></strong>   &amp;  ending value <strong><code>&lt;TransactionCode&gt;</code><strong>9</strong><code>&lt;/TransactionCode&gt;</code> <code>&lt;RecordType&gt;</code><strong>5</strong><code>&lt;/RecordType&gt;</code></strong></p>
  <p>Sample XML</p>
  <pre><code>&lt;element&gt;
  &lt;Student&gt;
  &lt;Name&gt;Sam&lt;/Name&gt;
  &lt;TransactionCode&gt;8&lt;/TransactionCode&gt;
  &lt;RecordType&gt;5&lt;/RecordType&gt;
  &lt;/Student&gt;
  &lt;Student&gt;
  &lt;Name&gt;bob&lt;/Name&gt;
  &lt;TransactionCode&gt;3&lt;/TransactionCode&gt;
  &lt;RecordType&gt;1&lt;/RecordType&gt;
  &lt;/Student&gt;
  &lt;Student&gt;
  &lt;Name&gt;Don&lt;/Name&gt;
  &lt;TransactionCode&gt;9&lt;/TransactionCode&gt;
  &lt;RecordType&gt;5&lt;/RecordType&gt;
  &lt;/Student&gt;
  &lt;Student&gt;
  &lt;Name&gt;Mike&lt;/Name&gt;
  &lt;TransactionCode&gt;8&lt;/TransactionCode&gt;
  &lt;RecordType&gt;5&lt;/RecordType&gt;
  &lt;/Student&gt;
  &lt;Student&gt;
  &lt;Name&gt;Jhony&lt;/Name&gt;
  &lt;TransactionCode&gt;2&lt;/TransactionCode&gt;
  &lt;RecordType&gt;1&lt;/RecordType&gt;
  &lt;/Student&gt;
  &lt;Student&gt;
  &lt;Name&gt;Alan&lt;/Name&gt;
  &lt;TransactionCode&gt;9&lt;/TransactionCode&gt;
  &lt;RecordType&gt;5&lt;/RecordType&gt;
  &lt;/Student&gt;
   &lt;/element&gt;
  </code></pre>
  <blockquote>
  </blockquote>
  <p><strong>Expected output</strong></p>
  <pre><code>&lt;element&gt;
  &lt;Student&gt;
  &lt;Name&gt;bob&lt;/Name&gt;
  &lt;TransactionCode&gt;3&lt;/TransactionCode&gt;
  &lt;RecordType&gt;1&lt;/RecordType&gt;
  &lt;Student&gt;
  &lt;Name&gt;Jhony&lt;/Name&gt;
  &lt;TransactionCode&gt;2&lt;/TransactionCode&gt;
  &lt;RecordType&gt;1&lt;/RecordType&gt;
  &lt;/Student&gt;
  &lt;/element&gt;
  </code></pre>
  <p>Please help how can be done using xslt as I am new to xslt .</p>