Re: [xml-dev] XPath and a continuous, uniform information space

From
Hans-Juergen Rennau <>
To
David Lee <>, Chris Maloney <>
Date
2013-08-15T20:52:24Z
ID
<>
Thread
Re: [xml-dev] XPath and a continuous, uniform information space
David, Chris,

little thought experiment. Starting point: the info space (= sum total of all available XML documents) is a node forest. Now the experiment: (a) imagine a single invisible "space node" (analogous to the invisible document node) to be parent of all document nodes; (b) reinterpret doc("http://foo.xml") to mean: root()/../document-node()[document-uri(.) eq 'http://foo.xml'].

In other words: regard doc("http://foo.xml") to be a notation of the two-step navigation (i) up to the space node, (ii) down into the document node of interest. So that is my answer to Chris: the value of

    doc("countries.xml")/countries/../..

is the space node. End of thought experiment.

Hans


Von: David Lee <[email protected]>
An: Chris Maloney <[email protected]>; Michael Kay <[email protected]>
CC: "Costello, Roger L." <[email protected]>; "[email protected]" <[email protected]>
Gesendet: 15:26 Mittwoch, 14.August 2013
Betreff: RE: [xml-dev] XPath and a continuous, uniform information space

For example, what does the following mean?
    doc("countries.xml")/countries/../..
 
In the spirit of "The Information Space" that would be "The Information Space" which is not a node().