From: Robert Klemme Date: 2008-06-09T19:53:41+09:00 Subject: Re: rexml & nested loops 2008/6/8 Dennis Edwards : > 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