From: Dennis Edwards Date: 2008-06-10T04:06:01+09:00 Subject: Re: rexml & nested loops On Jun 9, 4:53 am, Robert Klemme wrote: > 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 Thanks a lot Robert.. makes perfect sense now. Cheers. Dennis