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

Modified Files:
        xquery_fo.c 
Log Message:

Implementation for ``fn:node-name($arg as node()?) as xs:QName?'',
which forms the backbone of 
  - fn:name (),
  - fn:local_name() and
  - fn:namespace_uri ().

doc_access-operator now has another accessor ``doc_QName'',
which supports access to the QName. ``doc_QName'' is not supported
by the MIL translation, yet.


U xquery_fo.c
Index: xquery_fo.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/xquery_fo.c,v
retrieving revision 1.161
retrieving revision 1.162
diff -u -d -r1.161 -r1.162
--- xquery_fo.c 30 May 2008 09:42:49 -0000      1.161
+++ xquery_fo.c 30 May 2008 12:42:35 -0000      1.162
@@ -97,9 +97,34 @@
     {
 
 /* 2. ACCESSORS */
+/* 2.1. fn:node-name */
+         /* fn:node-name ((attribute)?) as xs:QName? */
+           { .ns = PFns_fn, .loc = "node-name",
+             .arity = 1,
+             .sig_count = 1, .sigs = { {
+                 .par_ty = (PFty_t[]) { PFty_opt (
+                                                               
PFty_xs_anyAttribute ()) },
+                 .ret_ty = PFty_xs_QName() } },
+             .alg = PFfn_bui_node_name_attr }
+        /* fn:node-name ((element)?) as xs:QName? */
+        , { .ns = PFns_fn, .loc = "node-name",
+            .arity = 1,
+            .sig_count = 1, .sigs = { {
+                .par_ty = (PFty_t[]) { PFty_opt (
+                                                       PFty_xs_anyElement ()) 
},
+                .ret_ty = PFty_xs_QName() } },
+            .alg = PFfn_bui_node_name_elem }
+         /* fn:node-name ((node)?)*/
+         , { .ns = PFns_fn, .loc = "node-name",
+             .arity = 1,
+             .sig_count = 1, .sigs = { {
+                 .par_ty = (PFty_t[]) { PFty_opt (
+                                                               PFty_xs_anyNode 
()) },
+                 .ret_ty = PFty_xs_QName() } },
+             .alg = PFfn_bui_node_name_node }
 /* 2.3. fn:string */
       /* fn:string () as string */
-      { .ns = PFns_fn, .loc = "string",
+     , { .ns = PFns_fn, .loc = "string",
         .arity = 0, .sig_count = 1, .sigs = { {
             .par_ty = (PFty_t[]) { PFty_none () },
             .ret_ty = PFty_xs_string () } },


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to