[Home] [By Thread] [By Date] [Recent Entries]
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 <dlee@c...> An: Chris Maloney <voldrani@g...>; Michael Kay <mike@s...> CC: "Costello, Roger L." <costello@m...>; "xml-dev@l..." <xml-dev@l...> Gesendet: 15:26 Mittwoch, 14.August 2013 Betreff: RE: 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().
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |

Cart



