title: xquery filter on attribute and element
body: <p>I have the following simple XML document:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;cars&gt;
      &lt;car&gt;
          &lt;data attrib="Make"&gt;
              &lt;text&gt;Volvo&lt;/text&gt;
          &lt;/data&gt;
          &lt;data attrib="Model"&gt;
              &lt;text&gt;855&lt;/text&gt;
          &lt;/data&gt;
      &lt;/car&gt;
      &lt;car&gt;
          &lt;data attrib="Make"&gt;
              &lt;text&gt;Volvo&lt;/text&gt;
          &lt;/data&gt;
          &lt;data attrib="Model"&gt;
              &lt;text&gt;745&lt;/text&gt;
          &lt;/data&gt;
      &lt;/car&gt;
      &lt;car&gt;
          &lt;data attrib="Make"&gt;
              &lt;text&gt;Volvo&lt;/text&gt;
          &lt;/data&gt;
          &lt;data attrib="Model"&gt;
              &lt;text&gt;V70R&lt;/text&gt;
          &lt;/data&gt;
      &lt;/car&gt;
  &lt;/cars&gt;
  </code></pre>
  
  <p>And the following XPath:</p>
  
  <pre><code>/cars/car/data[(@attrib='Model') and (text='855')]
  </code></pre>
  
  <p>This returns the following result:</p>
  
  <pre><code>&lt;data attrib="Model"&gt;&lt;text&gt;855&lt;/text&gt;&lt;/data&gt;
  </code></pre>
  
  <p>I want the XPath to return the whole <code>&lt;car&gt;</code> block for the match.</p>
  
  <p>So return data would be like this:</p>
  
  <pre><code>&lt;cars&gt;
      &lt;car&gt;
          &lt;data attrib="Make"&gt;
              &lt;text&gt;Volvo&lt;/text&gt;
          &lt;/data&gt;
          &lt;data attrib="Model"&gt;
              &lt;text&gt;855&lt;/text&gt;
          &lt;/data&gt;
      &lt;/car&gt;
  &lt;/cars&gt;
  </code></pre>
  
  <p>How would I modify the XPath expression above to achieve this?</p>