Bugs item #2059394, was opened at 2008-08-19 12:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2059394&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PF/runtime
Group: Pathfinder 0.24
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Wouter Alink (vzzzbx)
Assigned to: Nobody/Anonymous (nobody)
Summary: XQ: combination of constructed and doc elements

Initial Comment:
Occurs with releases MonetDB-Jun and MonetDB-Aug. Algebra backend.

given a document aap.xml and bug.xq:

-bash-3.1$ cat aap.xml 
<?xml version="1.0" encoding="utf-8"?>
<reports>
  <folder name="noot">
  </folder>
</reports>
-bash-3.1$ cat bug.xq 
declare option pf:recursion-depth "5";

declare function doThing($folders as node()*) as node()* {
  for $folder in $folders
  return element folder { doThing($folder/folder) } 
};

doThing((doc("aap.xml")/reports/folder, element folder { })) 

-bash-3.1$ 
-bash-3.1$ mclient -lxq -p51240 bug.xq 
MAPI  = [EMAIL PROTECTED]:51240
QUERY = declare option pf:recursion-depth "5";
ERROR = !ERROR: PFll_child: cand_bat with kind test must be a real kind bat.
        !ERROR: PFll_child: operation failed.
-bash-3.1$ 


a preliminary investigation seems to point to the following line:
"""
 a0009 := step (AXIS_child, TEST_nsloc, a0012, a0010, a0011, nil, ws, 3, 
ELEMENT, "", "folder", str(nil));
"""

in which BATs 10 11 and 12 have the following values:

[ "a0010" ]
#-----------------#
# t     h         # name
# void  oid       # type
#-----------------#
[ [EMAIL PROTECTED],    [EMAIL PROTECTED]     ]
[ [EMAIL PROTECTED],    [EMAIL PROTECTED]     ]

[ "a0011" ]
#-----------------#
# t     h         # name
# void  oid       # type
#-----------------#
[ [EMAIL PROTECTED],    [EMAIL PROTECTED]     ]
[ [EMAIL PROTECTED],    [EMAIL PROTECTED]     ]

[ "a0012" ]
#-----------------#
# t     h         # name
# void  oid       # type
#-----------------#
[ [EMAIL PROTECTED],    [EMAIL PROTECTED]     ]
[ [EMAIL PROTECTED],    [EMAIL PROTECTED]     ]





----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2059394&group_id=56967

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to