title: Xpath select nodes where parent has some attribute
body: <p>I have a problem using xpath.
  I need to select all items from category.
  Something like (pseudo lang.):
  select all divs if <strong>class != block-events-head</strong> and parent attribute <strong>data-category-sport="Basketball"</strong></p>
  
  <p>here is html sample:</p>
  
  <pre><code>&lt;div data-category-sport="Basketball" data-category-treeid="972911"&gt;
  &lt;div class="block-events-head"&gt;...&lt;/div&gt;
  &lt;div id="event_1558960" data-event-treeid="1558960"&gt;...&lt;/div&gt;
  &lt;div id="event_1559240" data-event-treeid="1559240"&gt;...&lt;/div&gt;
  &lt;div id="event_1559560" data-event-treeid="1559560"&gt;...&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Im trying:</p>
  
  <pre><code>.//div[@class!="block-events-head" and ../div[@data-category-sport='Basketball']]
  </code></pre>
  
  <p>But it not works :(</p>
  
  <pre><code>.//div[@class!="block-events-head"]
  </code></pre>
  
  <p>works but how to add a "filter by parent"?</p>
  
  <p>Help me to solve please..</p>
  
  <p>Regards!</p>