[Home] [By Thread] [By Date] [Recent Entries]

  • From: Hans-Juergen Rennau <hrennau@y...>
  • To: David Lee <dlee@c...>, Chris Maloney <voldrani@g...>
  • Date: Thu, 15 Aug 2013 21:52:24 +0100 (BST)

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]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member