Created
August 11, 2015 20:05
-
-
Save apb2006/33678508fea68148e7cc to your computer and use it in GitHub Desktop.
updating
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import module namespace eval = "quodatum.eval" at "../../../app-doc/src/doc/lib/eval.xqm"; | |
let $s:=" | |
declare variable $state as element(state):=db:open('doc-doc','/state.xml')/state; | |
(replace value of node $state/hits with 1+$state/hits, | |
1+$state/hits) | |
" | |
let $b:= eval:update($s,"",map{}) | |
return ($b,$b?result+100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment