| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Hierarchical query
On 13 jun, 21:37, Joe Kesselman <keshlam-nos..._at_comcast.net> wrote:
> Vadim Tropashko wrote:
> > I have trouble comprehending this line
>
> > (2) ../../statements//assignment/var[string() = $dvar/string()]
>
> > should I read it left to right?
>
> Find a good tutorial on XPath. Yes, it evaluates left to right. From the
> context node, find its parent; find the parent of that; find its
> <statements> children; find their <assignment> descendants (at any
> depth), find their <var> children whose string value is the same as ...
> hmmm. actually I'm not sure what $dvar/string() was intended to mean,
> and I don't have time right now to check that.
It retrieves the text node children of the nodes in $dvar. Actually it is unnecessary, in this case I might just have well have written the predicate as [. = $dvar].
![]() |
![]() |