title: Getting parent's parent from current node in Xpath 2.0
body: <p>I always seem to have trouble with xpath axis expressions...</p>
  
  <p>In some expressions I have used <code>../</code> to refer to the parent node, but is that not valid for <code>test</code> expressions? Or is my syntax just wrong?</p>
  
  <pre><code>&lt;xsl:when test="../../[@status='current']"&gt;
  </code></pre>
  
  <p>My goal is to apply an attribute inside the <code>xsl:when</code> IF the parent's parent has a status attribute with a value of 'current'.</p>
  
  <p>EDIT: <code>self::parent/parent[@status='current']</code> is a valid xpath expression and may be what I want, can anyone confirm? I might not be going far enough.</p>