title: XSLT Transformations for specific occurence of value
body: <p>During the integration of an API, I am trying to select the first occurrence where the value of the  Tag matches a specific string, and discounts all of the rest.</p>
  
  <p>Below is a snippet of the code I have.</p>
  
  <pre><code>&lt;Body&gt;
  &lt;Envelope&gt;
  &lt;GetCollectionResponse&gt;
  &lt;GetCollectionResult&gt;
      &lt;ErrorCode&gt;0&lt;/ErrorCode&gt;
      &lt;Collections&gt;
          &lt;Collection&gt;
              &lt;Service&gt;Service One&lt;/Service&gt;
              &lt;Day&gt;Tuesday&lt;/Day&gt;
              &lt;Date&gt;18/07/2017&lt;/Date&gt;
          &lt;/Collection&gt;
          &lt;Collection&gt;
              &lt;Service&gt;Service Two&lt;/Service&gt;
              &lt;Day&gt;Wednesday&lt;/Day&gt;
              &lt;Date&gt;19/07/2017&lt;/Date&gt;
          &lt;/Collection&gt;
          &lt;Collection&gt;
              &lt;Service&gt;Service One&lt;/Service&gt;
              &lt;Day&gt;Thursday&lt;/Day&gt;
              &lt;Date&gt;20/07/2017&lt;/Date&gt;
          &lt;/Collection&gt;
      &lt;/Collections&gt;
  &lt;/GetCollectionResult&gt;
  &lt;/GetCollectionResponse&gt;
  &lt;/Envelope&gt;
  &lt;/Body&gt;
  </code></pre>
  
  <p>Ideally, I would like it to fetch the first occurence whereby the Service matches '<em>Service One</em>' - retrieving the information as shown below, rather than the second occurence.</p>
  
  <pre><code>&lt;Service&gt;Service One&lt;/Service
  &lt;Day&gt;Tuesday&lt;/Day&gt;
  &lt;Date&gt;18/07/2017&lt;/Date&gt;
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>