Thursday 31 March 2011

MarkLogic: Inserting an XQuery Module into the database from within CQ (or XQuery)

This trick is useful for quick local testing. You can insert a module into the Modules database from within CQ by selecting "Modules" as the Content Source and then wrapping the module like so:

If you explore the contents of your modules database after executing this, you should see /simple-example.xqy in the list.

No comments: