|
From: | Per Bothner |
Subject: | Re: [Qexo-general] sequences and xml children |
Date: | Sun, 22 Jun 2003 22:55:38 -0700 |
User-agent: | Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4) Gecko/20030612 |
fl wrote:
define function x(){<a><b x="1"/></a>} let $x:=<a>{for $b in x()/b return $b}</a> return $x/b does not return anything !
The are two problems:(1) the result of x() gets does not get copied into the result node, but is instead referenced "by reference".
(2) the code for $x/b does not handle name-matching children "by reference".Either might fix the problem. Probably both should be changed. (It will be difficult to implement the parent:: axis unless (1) is changed.)
I'm working on the problem. -- --Per Bothner address@hidden http://per.bothner.com/
[Prev in Thread] | Current Thread | [Next in Thread] |