Reputation: 2620
I am using MarkLogic CPF
framework.
When a document is inserted in a particular collection
a XQuery module will be invoked let's say create-doc.xqy
.
I have configured the domain to have all the xquery modules in documents
database under path /create/xquery/modules/*.xqy
Path for create-doc.xqy
will be /create/xquery/modules/create-doc.xqy
Is it possible to import other xquery modules in create-doc.xqy
and use it's methods?
Upvotes: 0
Views: 102
Reputation: 33
There are two approaches to doing this
Upvotes: 1
Reputation: 7770
From your description, it appears that the chapter related to importing modules is what you are looking for:
https://docs.marklogic.com/guide/app-dev/import_modules
Upvotes: 3