try (xdmp:document-insert($uri1, $content1),
xdmp:document-insert($uri2, $content2)) From: [email protected] [mailto:[email protected]] On Behalf Of Richard Strauch Sent: Monday, July 20, 2009 1:53 PM To: [email protected] Subject: [MarkLogic Dev General] Problem with multiple document inserts Hi, I'm having a problem inserting multiple documents from XQuery. My code is like this (: code to build $content1 and $content2 :) xdmp:document-insert($uri1, $content1) xdmp:document-insert($uri2, $content2) either of these inserts works on its own, but when together I get the error XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected QName_, expecting $end in /insertdocs.xqy, on line 55 [0.9-ml] Line 55 is the second document-insert. Clearly I'm not grasping how document-insert works, is there a way to do this? Thanks Richard.
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
