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

Modified Files:
        algebra.h builtins.h 
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 algebra.h
Index: algebra.h
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/include/algebra.h,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -d -r1.86 -r1.87
--- algebra.h   30 May 2008 09:42:24 -0000      1.86
+++ algebra.h   30 May 2008 12:42:34 -0000      1.87
@@ -377,9 +377,7 @@
     , doc_text         /**< content of a text node > */
     , doc_comm         /**< content of a comment node > */
     , doc_pi_text      /**< content of a pi node > */
-/*    , doc_name   */      /**< name of element node > */
-/*    , doc_local  */      /**< local part of an element node name > */
-/*    , doc_uri    */      /**< uri part of an element node name > */
+       , doc_qname        /**< QName of a node > */
 };
 typedef enum PFalg_doc_t PFalg_doc_t;
 

U builtins.h
Index: builtins.h
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/include/builtins.h,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- builtins.h  30 May 2008 09:42:24 -0000      1.50
+++ builtins.h  30 May 2008 12:42:35 -0000      1.51
@@ -48,6 +48,19 @@
 #include "core2alg.h"
 
 /* 2. ACCESSORS */
+/* 2.1. fn:node_name */
+struct PFla_pair_t PFfn_bui_node_name_attr (const PFla_op_t *loop,
+                                                                               
bool ordering,
+                                                                       struct 
PFla_pair_t *args);
+
+struct PFla_pair_t PFfn_bui_node_name_elem (const PFla_op_t *loop,
+                                                                               
        bool ordering,
+                                                                               
        struct PFla_pair_t *args);
+
+struct PFla_pair_t PFfn_bui_node_name_node (const PFla_op_t *loop,
+                                                                               
        bool ordering,
+                                                                               
struct PFla_pair_t *args);
+
 /* 2.3. fn:string */
 struct PFla_pair_t PFbui_fn_string_attr (const PFla_op_t *loop,
                                          bool ordering,


-------------------------------------------------------------------------
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