[basex-talk] transform before update query

2014-02-16 Thread Imsieke, Gerrit, le-tex
This XQuery update related question might be not the most BaseX-specific question that has ever been asked on the list, but anyway: I’m currently improving the performance of sxedit (that I presented at XML Prague yesterday). One nasty workaround that I have to do in the browser is escaping

Re: [basex-talk] transform before update query

2014-02-16 Thread Christian Grün
Hi Gerrit, the return clause of the transform (copy) expression does not allow update operations. What you can do is to wrap your code in a FLWOR expression: let $doc := copy $doc := parse-xml($wrapper) modify ( for $n in $doc/descendant-or-self::*[starts-with(local-name(), '_')]

Re: [basex-talk] transform before update query

2014-02-16 Thread Imsieke, Gerrit, le-tex
Christian, thanks for your XQuery support. Will pay back in XSLT support ;) I made this change, and I also made the xquery:eval statements compatible with 7.8: https://github.com/gimsieke/sxedit/blob/master/lib/basex/restxq/sxedit.xqm Gerrit On 16.02.2014 15:40, Christian Grün wrote: Hi