From: Pierrick B. <pie...@fr...> - 2007-03-31 08:19:41
|
Hi, Scott Warren a écrit : > I have managed to create an XQuery that run against Revision 5530 produces > the above error. Currently "simplified" as : declare function local:storeDocument ($doc) { xmldb:store("/db", concat($doc/@id, '.xml'), $doc) }; declare function local:createDocument() { let $Result := <TestDoc changeMe="" id="TestDoc"> <Index /> { for $i in 1 to 20 return <Item id="{$i}"> <SubItem1 attribute="Attr1-{$i}" value="" /> <SubItem2 attribute="Attr2-{$i}" value="" /> </Item> } </TestDoc> let $temp := local:storeDocument($Result) return $Result } ; declare function local:doTest($doc) { let $temp := local:storeDocument($doc) return for $item in $doc/Item let $TransactionID := <Transaction><subElement>SUb Value {util:uuid()}</subElement></Transaction> let $temp1 := update insert $TransactionID into $item/SubItem1 let $temp := local:storeDocument($doc) return <Item processed="{$item/@id}" /> }; let $temp := local:createDocument() let $doc := doc('/db/TestDoc.xml')/TestDoc return local:doTest($doc) Well, if eXist is able to manage this one in the (near ?) future, we'll have the right to say it's a good product : multiple storings, in-memory nodes, updates... quite an explosive mixture :-) I will continue my investigations ASAP. Cheers, p.b. |