I¹d wonder though, would XSLT allow streaming? Something like: for $doc in xdmp:xslt-eval(Œproducesmanydocs.xsl¹) return xdmp:document-insert(base-uri($doc), $doc)
That way you at least don¹t have to hold unnecessary memory.. Cheers, Geert On 10/7/16, 6:21 PM, "[email protected] on behalf of Mary Holstege" <[email protected] on behalf of [email protected]> wrote: >On Fri, 07 Oct 2016 08:52:18 -0700, Hans Hübner ><[email protected]> wrote: > >> Hi folks, >> >> is there a way to make xsl:result-document insert the document into the >> database rather than returning it to the XQuery that invoked the XSLT >> transformation? We know that we can use xdmp:document-insert from >> XQuery, >> but I'd prefer if the documents that I create in XSLT would be inserted >> directly, without first instantiating all of them in memory. >> >> Thanks, >> Hans >> > >No, there isn't. XSLT processing is building the document's data model in > >memory regardless, incrementally as it goes. Document insert also needs >to >have the data model on hand in order to do indexing once the commit >happens, so you can't really get around this. > >//Mary >_______________________________________________ >General mailing list >[email protected] >Manage your subscription at: >http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
