Update of /cvsroot/monetdb/pathfinder/compiler/semantics
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv25104/compiler/semantics
Modified Files:
xquery_fo.c
Log Message:
- finishing the value indexing => they now get maintained under XUF updates
- fixed bugs in te updating code (these got new atr/text values from
PROP_VAL/PROP_TEXT, where they are only found if those values already existed.
if not, we need to check PROP_VAL_UPDATE/PROP_TEXT_UPDATE.
- as it turned out expensive to figure out for changed text nodes which node
was the parent, we went for the asy solution and changed the semantics.
Now text node indexing no longer takes into account the parent element
(ie no condition on its qname). thus, the signature of pf:text() is now:
pf:text($ctx as node()*, $val as xs:string) as text()*
Index: xquery_fo.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/xquery_fo.c,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -d -r1.114 -r1.115
--- xquery_fo.c 4 Apr 2007 13:52:01 -0000 1.114
+++ xquery_fo.c 4 Apr 2007 22:23:55 -0000 1.115
@@ -1770,12 +1770,10 @@
.ret_ty = PFty_star( PFty_xs_anyElement ()) } } }
, /* pf:text (node()*, string, string, string) as element()* */
{ .ns = PFns_lib, .loc = "text",
- .arity = 4, .sig_count = 1, .sigs = { {
+ .arity = 2, .sig_count = 1, .sigs = { {
.par_ty = (PFty_t[]) { PFty_star( PFty_xs_anyNode ()),
- PFty_xs_string (),
- PFty_xs_string (),
PFty_xs_string () },
- .ret_ty = PFty_star( PFty_xs_anyElement ()) } } }
+ .ret_ty = PFty_star( PFty_text()) } } }
, /* pf:add-doc (string, string) as docmgmt */
{ .ns = PFns_lib, .loc = "add-doc",
.arity = 2, .sig_count = 1, .sigs = { {
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins