title: What XQuery expression will return the XPath of each found node?
body: <p>I am looking for an example of a XQuery that returns the xpath for each node found. So for example instead of getting the text() of each found node I would like to get the path() - but that function doesn't seem to exist :-)</p>
  
  <p>I see now that the XPath 3.0 spec defines a path() function that would do what i want, but apparently this is new to 3.0</p>
  
  <p><a href="http://www.w3.org/TR/2011/WD-xpath-functions-30-20111213/#func-path" rel="nofollow">http://www.w3.org/TR/2011/WD-xpath-functions-30-20111213/#func-path</a></p>