Update of /cvsroot/monetdb/pathfinder/compiler/semantics
In directory sc8-pr-cvs16:/tmp/cvs-serv26699/compiler/semantics
Modified Files:
xquery_fo.c
Log Message:
- added pf:docname($n as node()*) as xs:string*
that is, discover the document names from which a sequence of nodes stem
this is needed in a multi-document scenario where a document, identified
by some expression over the entire collection, gets deleted.
- allow a collection super-root node to be passed in a context in the fn:id()
call.
this is an *extension* of the XQuery semantics, as it allows to look for
nodes by ID across an entire collection (i.e. in multiple docs=XML
fragments).
Index: xquery_fo.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/xquery_fo.c,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -d -r1.118 -r1.119
--- xquery_fo.c 16 Apr 2007 12:06:32 -0000 1.118
+++ xquery_fo.c 18 Apr 2007 09:42:29 -0000 1.119
@@ -1747,6 +1747,11 @@
.arity = 1, .sig_count = 1, .sigs = { {
.par_ty = (PFty_t[]) { PFty_xs_string () },
.ret_ty = PFty_star( PFty_xs_anyElement ()) } } }
+ , /* pf:docname (node*) as string* */
+ { .ns = PFns_lib, .loc = "docname",
+ .arity = 1, .sig_count = 1, .sigs = { {
+ .par_ty = (PFty_t[]) { PFty_star( PFty_xs_anyNode ()) },
+ .ret_ty = PFty_star( PFty_xs_string ()) } } }
, /* pf:collection (string) as node */
{ .ns = PFns_lib, .loc = "collection",
.arity = 1, .sig_count = 1, .sigs = { {
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins