Update of /cvsroot/monetdb/pathfinder/compiler/semantics
In directory sc8-pr-cvs16:/tmp/cvs-serv5581/semantics
Modified Files:
ns.c xquery_fo.c
Log Message:
Added pxmlsup namespace for use in probxml module
Added function pxmlsup:newid
Index: xquery_fo.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/xquery_fo.c,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -d -r1.121 -r1.122
--- xquery_fo.c 27 Apr 2007 18:22:41 -0000 1.121
+++ xquery_fo.c 4 May 2007 09:44:53 -0000 1.122
@@ -2062,6 +2062,14 @@
.par_ty = (PFty_t[]) { PFty_xs_integer () },
.ret_ty = PFty_xs_integer () } } }
#endif
+
+#ifdef HAVE_PROBXML
+ , /* pxmlsup:nid (xs:element) as string */
+ { .ns = PFns_pxmlsup, .loc = "newid",
+ .arity = 1, .sig_count = 1, .sigs = { {
+ .par_ty = (PFty_t[]) { PFty_xs_integer () },
+ .ret_ty = PFty_xs_integer () } } }
+#endif
, { .loc = 0 }
};
Index: ns.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/ns.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- ns.c 20 Mar 2007 09:57:51 -0000 1.32
+++ ns.c 4 May 2007 09:44:52 -0000 1.33
@@ -161,6 +161,14 @@
PFns_t PFns_tijah = { .prefix = "tijah",
.uri = "http://dbappl.cs.utwente.nl/pftijah/" };
+#ifdef HAVE_PROBXML
+/**
+ * Pathfinder's namespace for additional pxml support functions (pxmlsup:...)
+ */
+PFns_t PFns_pxmlsup = { .prefix = "pxmlsup",
+ .uri = "http://dbappl.cs.utwente.nl/pxmlsup/" };
+#endif
+
/**
* Pathfinder's own internal NS (pf:...).
* Note that the prefix contains a character that cannot be entered in
@@ -1003,6 +1011,9 @@
ns_add (PFns_local);
ns_add (PFns_lib);
ns_add (PFns_tijah);
+#ifdef HAVE_PROBXML
+ ns_add (PFns_pxmlsup);
+#endif
/* bring the function and operator NS into scope
* and make fn:... the default function NS
-------------------------------------------------------------------------
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