From: JP <jpl...@gm...> - 2011-10-10 19:04:48
|
Hi all, sorry for (bad english, bad question, bad use of this list, etc.) I'm trying to submit request from Orbeon XForms : ( <xforms:submission id="save-submission" method="post" replace="instance" targetref="instance('stockage-local')/retour" action="{fn:concat(instance('stockage-local')/request-path,'XQN03.xq')}"/> ) It seems ok, except the query ('XQN03.xq', see at this mail's end) doesn't work as expected : -return sounds ok -eXist Query profiling says ok (0.5 sec) -but ... data are not updated The same request submitted from xQuery Sandbox works fine. Submitted from eXist "browse collection" is like submitting from Orbeon. Please, where am I wrong ? Thanks, JP Here is that request (truncated, and parameters replaced here with stored data) : let $identifiant := "N03_22Z" let $chemin := doc("http://localhost:8080/exist/rest/db/Rmes/Donnees/NAF2008.xml") let $modif := <rm:Poste isVersionable="true" version="2.0.0" versionDate="2009-01-11" id="N03_22Z" urn="urn:ddi:fr.insee:Poste.N03_22Z.2.0.0"><ddi:UserID type="Nom">F M</ddi:UserID> <Titre Longueur="500" xml:lang="fr">Aquaculture en eau douce</Titre> <NoteGenerale xml:lang="fr"/> <PseudoCode>true</PseudoCode> <Contenu xml:lang="fr">- l'aquaculture en eau douce etc. </Contenu> <Exclu xml:lang="fr">- l'aquaculture dans des citernes ou des réservoirs remplis d'eau salée etc. )</Exclu> </rm:Poste> for $noeud in $chemin return <retour> <identifiant>{$identifiant}</identifiant> <chemin>{$chemin/rm:FamilleDeNomenclatures/Nomenclature//rm:Poste[@id=$identifiant]}</chemin> <modif>{$modif}</modif> <result> {update replace /rm:FamilleDeNomenclatures/Nomenclature//rm:Poste[@id=$identifiant] with $modif} </result> </retour> |