XSLT looping though XML to check if value exists <p>XML:</p> <pre><code>&lt;amenities&gt; &lt;record&gt; &lt;thekey&gt;77&lt;/thekey&gt; &lt;thevalue&gt;Balcony&lt;/thevalue&gt; &lt;/record&gt; &lt;record&gt; &lt;thekey&gt;75&lt;/thekey&gt; &lt;thevalue&gt;Cable&lt;/thevalue&gt; &lt;/record&gt; &lt;record&gt; &lt;thekey&gt;35&lt;/thekey&gt; &lt;thevalue&gt;High Speed Internet&lt;/thevalue&gt; &lt;/record&gt; &lt;record&gt; &lt;thekey&gt;16&lt;/thekey&gt; &lt;thevalue&gt;Fireplace&lt;/thevalue&gt; &lt;/record&gt; &lt;record&gt; &lt;thekey&gt;31&lt;/thekey&gt; &lt;thevalue&gt;Garage&lt;/thevalue&gt; &lt;/record&gt; &lt;record&gt; &lt;thekey&gt;32&lt;/thekey&gt; &lt;thevalue&gt;Phone&lt;/thevalue&gt; &lt;/record&gt; &lt;/amenities&gt; </code></pre> <p>I need to check each record in amenities to find out if "35" (high speed internet) exists. The records in amenities can vary. Sometimes it will have 35 (high speed internet) and sometimes it will not. I need to be able to check this in XSLT.</p>