From: Marcus Bristav Date: 2006-08-04T08:29:46+09:00 Subject: Re: REXML XPath: bug or misunderstanding? ------=_Part_48172_27494784.1154647783352 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 8/4/06, Eric Armstrong wrote: > > 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. I suppose this is because XPath originated from XSLT. When using XPath in XSLT you always have, implicitly, the current node as the context node. Sometimes you need to break out of the context and then you do it by appending a "/" or a "//" in the beginning of your path expression to search from the root. XPath works extremely smooth in most ways in XSLT. But from a DOM and XPath perspective it's kind of silly... /Marcus ------=_Part_48172_27494784.1154647783352--