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

Reply via email to