- From: Bas de Bakker <bas@x-hive.com>
- Date: Wed, 2 Jan 2002 14:52:34 +0100
- To: "Vadim Draluk" <vadim@draluk.net>
- Cc: <www-ql@w3.org>
> 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