title: Is "/" the same as "/*/parent::*" in XPath 1.0?
body: <p>I've been reading the XPath specs and using the <a href="http://xpathvisualizer.codeplex.com/" rel="nofollow">XPath Visualizer Tool</a> in order to obtain deeper knowledge of XPath 1.0. </p>
  
  <p>I can select the root node of a document by using <code>/</code>. When I enter this character into the tool, no visual selection is indicated in it's text editor, but the status bar contains the following text: </p>
  
  <p><code>"/: 1 node selected"</code>, </p>
  
  <p>which is what was expected. What's selected is the invisible root node (document root).</p>
  
  <p>However when I entered the <code>/*/parent::*</code> character sequence into the tool, I got</p>
  
  <p><code>"/*/parent::*: Zero nodes selected"</code>. </p>
  
  <p>Is the tool correct or should this expression also select the root node?</p>
  
  <p>I also tried with the <strong>ancestor</strong> axis instead of <strong>parent</strong> for which the specs say the following:</p>
  
  <blockquote>
    <p>the ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; thus, the ancestor axis will always include the root node, unless the context node is the root node</p>
  </blockquote>
  
  <p>which specifically mentions the root node. Since in my case the context node from the first location step is the document element, shouldn't the result set contain the root node? Why not?</p>
  
  <p>The specs also say this:</p>
  
  <blockquote>
    <p>the parent axis contains the parent of the context node, if there is one</p>
  </blockquote>
  
  <p>and this:</p>
  
  <blockquote>
    <p>/ selects the document root (which is always the parent of the document element)</p>
  </blockquote>
  
  <p>Note that I was intentionally using the same terms in the above text as are being used within the spec. </p>
  
  <p><strong>Edit01</strong></p>
  
  <p>The xml document loaded into the tool is a well formed XML document and therefore non-empty.</p>