Update of /cvsroot/monetdb/pathfinder/compiler/semantics
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12574/compiler/semantics

Modified Files:
        xquery_fo.c 
Log Message:
Algebra and logical implementation of the following build-in functions:
- fn:name(), fn:name(node?)
- fn:local-name(), fn:locla-name(node?)
- fn:namespace-uri(), fn:namespace-uri(node?)

These functions are 1to1 functions since they all return a string for each
node parameter.


Index: xquery_fo.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/xquery_fo.c,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -d -r1.147 -r1.148
--- xquery_fo.c 27 Dec 2007 13:07:15 -0000      1.147
+++ xquery_fo.c 8 Jan 2008 16:54:23 -0000       1.148
@@ -1216,7 +1216,8 @@
       { .ns = PFns_fn, .loc = "name",
         .arity = 1, .sig_count = 1, .sigs = { {
             .par_ty = (PFty_t[]) { PFty_opt (PFty_node ()) },
-            .ret_ty = PFty_xs_string () } } }
+            .ret_ty = PFty_xs_string () } },
+        .alg = PFbui_fn_name }
 
 /* 14.2. fn:local-name */
     , /* fn:local-name (node) as string */
@@ -1228,7 +1229,8 @@
       { .ns = PFns_fn, .loc = "local-name",
         .arity = 1, .sig_count = 1, .sigs = { {
             .par_ty = (PFty_t[]) { PFty_opt (PFty_node ()) },
-            .ret_ty = PFty_xs_string () } } }
+            .ret_ty = PFty_xs_string () } },
+        .alg = PFbui_fn_local_name }
 
 /* 14.3. fn:namespace-uri */
     , /* fn:namespace-uri (node) as string */
@@ -1240,7 +1242,8 @@
       { .ns = PFns_fn, .loc = "namespace-uri",
         .arity = 1, .sig_count = 1, .sigs = { {
             .par_ty = (PFty_t[]) { PFty_opt (PFty_node ()) },
-            .ret_ty = PFty_xs_string () } } }
+            .ret_ty = PFty_xs_string () } },
+        .alg = PFbui_fn_namespace_uri }
 
 /* 14.4. fn:number */
     , /* fn:number () as double */


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to