RE: couple of spec comments

> 2. Recursion in dereferencing. As I understand it such
> recursion is not allowed, unlike one over conventional
> navigation axes. So the manager-employee example in
> 2.3.3 could not be generalized, say, to look for a
> person some place up the reporting chain. This could
> become more conspicuous an omission if dereferencing
> syntax is merged with one of axes, as considered in
> 227.

You can always write a user defined function to do what you want.  E.g.

define function all-managers(element emp $emp)
returns element emp *
{
    let $manager := $emp/attribute::manager=>emp
    where exists($manager)
    return ($manager, all-managers($manager))
}

Regards,
Bas de Bakker
X-Hive Corporation

Received on Wednesday, 2 January 2002 08:53:25 UTC