Dennis Edwards
6/9/2008 7:00:00 PM
On Jun 9, 4:53 am, Robert Klemme <shortcut...@googlemail.com> wrote:
> 2008/6/8 Dennis Edwards <dedw...@gmail.com>:
>
> > I get that part of the syntax - what I don't (or didn't) get is why
> > the two xpath operations I have are referring to the same document - I
> > assumed they would be scoped to only the data passed to the block.
>
> Well, they are because they use the node as basis. But if you give
> the command "search everything from the root on" then no matter where
> you start the root node of that document will determine the start
> position. Hence you have "." to denote the current node.
>
> Cheers
>
> robert
>
> --
> use.inject do |as, often| as.you_can - without end
Thanks a lot Robert.. makes perfect sense now.
Cheers.
Dennis