Update of /cvsroot/monetdb/pathfinder/compiler/include
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv14549/compiler/include
Modified Files:
Tag: M5XQ
ns.h
Log Message:
propagated changes of Thursday Nov 05 2009 - Monday Nov 09 2009
from the development trunk to the M5XQ branch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/11/05 - singhan: compiler/include/ns.h,1.20
XQuery full-text search support initial version!
This initial version provides support to
-ftcontains keyword,
e.g., for $f in doc("menu.xml")//food[./name ftcontains "Belgian Waffles"]
return $f
The above query will return all the food nodes that has some relevancy over
"Belgian Waffles"
-initial score variable support
e.g., for $f score $s in doc("menu.xml")//food[./name ftcontains "Belgian
Waffles"]
return $s
The above query will return the relevancy score of all the matched food
nodes, however since its an initial version, the support to this score variable
is very limited.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Index: ns.h
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/include/ns.h,v
retrieving revision 1.19
retrieving revision 1.19.4.1
diff -u -d -r1.19 -r1.19.4.1
--- ns.h 8 Jan 2009 16:54:12 -0000 1.19
+++ ns.h 9 Nov 2009 00:04:21 -0000 1.19.4.1
@@ -50,14 +50,14 @@
* either via an XQuery namespace declaration, e.g.
*
* declare namespace foo = "http://bar"
- *
+ *
* or a namespace declaration (xmlns) attribute, e.g.,
*
* <a xmlns:foo="http://bar"> ... </a>
*
* or by definition, see the W3C standard documents, e.g.
* W3C XQuery, 4.1 (Namespace Declarations):
- *
+ *
* "xs" |-> "http://www.w3.org/2001/XMLSchema"
*/
struct PFns_t {
@@ -72,7 +72,7 @@
/** Predefined namespace `xml' for any query */
extern PFns_t PFns_xml;
/** Predefined namespace `xs' (XML Schema) for any query */
-extern PFns_t PFns_xs;
+extern PFns_t PFns_xs;
/** Predefined namespace `xsi' (XML Schema Instance) for any query */
extern PFns_t PFns_xsi;
/** Predefined namespace `xdt' (XPath Data Types) for any query */
@@ -83,7 +83,7 @@
extern PFns_t PFns_upd;
/**
- * XQuery default function namespace (fn:..., this may be overridden
+ * XQuery default function namespace (fn:..., this may be overridden
* via `default function namespace = "..."')
* (see W3C XQuery 1.0 and XPath 2.0 Function and Operators, 1.5).
*/
@@ -95,19 +95,26 @@
*/
extern PFns_t PFns_op;
+#ifdef HAVE_PFTIJAH
+/**
+ * XQuery full-text search operator namespace (fts:...)
+ */
+extern PFns_t PFns_fts;
+#endif
+
/**
* Pathfinder's namespace for additional non-'fn' functions.
- */
+ */
extern PFns_t PFns_lib;
/**
* Pathfinder's namespace for additional tijah functions.
- */
+ */
extern PFns_t PFns_tijah;
/**
* Pathfinder's namespace for XRPC extension.
- */
+ */
extern PFns_t PFns_xrpc;
#ifdef HAVE_GEOXML
@@ -124,9 +131,9 @@
extern PFns_t PFns_pxmlsup;
#endif
-/**
+/**
* Pathfinder's own internal NS (pf:...).
- */
+ */
extern PFns_t PFns_pf;
/**
@@ -137,7 +144,7 @@
/** A prefix -> URI mapping table (implemented as PFarray_t */
typedef PFarray_t PFns_map_t;
-/**
+/**
* NS equality (URI-based, then prefix-based)
*/
int PFns_eq (PFns_t, PFns_t);
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins