From: Eric Armstrong Date: 2006-08-04T08:09:44+09:00 Subject: Re: REXML XPath: bug or misunderstanding? Marcus Andersson wrote: > > // always uses the document root as the context regardless of the > context node provided. This is according to the XPath spec. > > To get all descendants of the current context node using a shorthand you do > > .//td > > The . in the beginning makes sure the expression will use the current > node as the context. > Very useful syntax. Thanks. I continue to be disgruntled by a syntax that ignores the context you specified, unless you add the additional "." to say, "No, I really mean it". But I thank you for a fine solution, and the additional explanation.