http://blog.davidcassel.net/2011/10/queries-and-updates/ has a good explanation of the usual cause of that error. Does it make sense in context?
-- Mike On Oct 23, 2012, at 16:02, Florent Georges <li...@fgeorges.org> wrote: > Hi, > > I've just got an error I don't understand: > > XDMP-UPDATEFUNCTIONFROMQUERY: local:page#0() -- Cannot apply > an update function from a query > > In use xquery version "3.0". All I did was to update a piece > of code following the following scheme. From: > > declare function xxx($content as element()+) { > $content > }; > xxx(<content/>) > > to: > > declare function xxx($content as function() as element()+) { > $content() > }; > declare function content() as element()+ { > <content/> > }; > xxx(content#0) > > Did I miss anything? > > Regards, > > -- > Florent Georges > http://fgeorges.org/ > http://h2oconsulting.be/ > _______________________________________________ > General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general