- From: Oleg Tkachenko <olegt@multiconn.com>
- Date: Wed, 26 Dec 2001 20:14:28 +0200
- To: www-xpath-comments@w3.org
James Swift wrote: > looking at the production > > AbsoluteLocationPath ::= '/' RelativeLocationPath? | > AbbreviatedAbsoluteLocationPath > > one would assume that a / on it's own is a valid XPath expression, > however I can't see what this could mean. Why not? RelativeLocationPath is optional, so / is a truly valid XPath expression. See http://www.w3.org/TR/xpath.html#location-paths "An absolute location path consists of / optionally followed by a relative location path. A / by itself selects the root node of the document containing the context node." PS. It's like "cd /" in a shell :) -- Oleg Tkachenko Multiconn International, Israel
Received on Wednesday, 26 December 2001 13:12:30 UTC