Update of /cvsroot/monetdb/pathfinder/tests/Update/Tests
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv15737/tests/Update/Tests
Modified Files:
Tag: XQuery_0-16
update.xq
Log Message:
If I understood today's skype conference correctly,
we agreed on keeping Peter's syntax changes of
"do rename ... with" into "do rename ... into".
Hence, I felt free to also change the documentation in EXTENSIONS
and usage in test tests/Update/Tests/update.xq accordingly.
This should make test tests/Update/Tests/update.xq work (correctly), again.
In case someone decides to go back to "do rename ... with",
please recall to change all occurances consistently
(`find .../pathfinder -type f | xargs egrep 'do.*rename.*(into|with)'`).
Index: update.xq
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/tests/Update/Tests/update.xq,v
retrieving revision 1.7
retrieving revision 1.7.4.1
diff -u -d -r1.7 -r1.7.4.1
--- update.xq 1 Nov 2006 16:47:30 -0000 1.7
+++ update.xq 13 Feb 2007 22:39:09 -0000 1.7.4.1
@@ -21,16 +21,16 @@
do insert attribute attr {text{$elem/@attribute}} into
exactly-one($elem),
do insert attribute copyright {text{$elem/../@copyright}} into
exactly-one($elem),
- do rename exactly-one($elem/@attribute) with "Attribute",
+ do rename exactly-one($elem/@attribute) into "Attribute",
- do rename exactly-one($elem/@dummy) with "foo",
+ do rename exactly-one($elem/@dummy) into "foo",
do replace value of exactly-one($elem/@xyzzy) with "hgulp",
do replace value of exactly-one($elem/@dummy) with "bar")
,
do delete ($testdoc/document/@title, $testdoc/document/@copyright,
$testdoc/document/@foo)
,
for $elem in $testdoc/document/[EMAIL PROTECTED] = 50]
- return do rename exactly-one($elem) with "Element"
+ return do rename exactly-one($elem) into "Element"
,
(: test changing comment value with the following test:
-- new text
@@ -51,9 +51,9 @@
-- rename instruction and replace target
:)
(do replace value of exactly-one($testdoc//processing-instruction(pi0000))
with "foo",
- do rename exactly-one($testdoc//processing-instruction(pi1000)) with "bar",
+ do rename exactly-one($testdoc//processing-instruction(pi1000)) into "bar",
do replace exactly-one($testdoc//processing-instruction(pi2000)) with (:
<?target instruction?> :) exactly-one($testdoc//processing-instruction(pi4000)),
- do rename exactly-one($testdoc//processing-instruction(pi5000)) with "xyzzy",
+ do rename exactly-one($testdoc//processing-instruction(pi5000)) into "xyzzy",
do replace value of exactly-one($testdoc//processing-instruction(pi5000))
with "plugh")
,
(: test delete with the following tests:
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins