The DocBook conversion module is part of the conversion processing pipeline. These functions are used to manipulate DocBook as part of conversion processing.
To use the DocBook module as part of your own XQuery module, include the following line in your XQuery prolog:
import module namespace dbk = "http://marklogic.com/cpf/docbook" at "/MarkLogic/conversion/docbook.xqy"
You will need to ensure that the DocBook module is loaded into the same modules database as the importing module.
The library namespace prefix dbk is not predefined in the server.
dbk
xquery version "0.9-ml" import module namespace dbk = "http://marklogic.com/cpf/docbook" at "/MarkLogic/conversion/docbook.xqy" let $options := <options xmlns="dbk:convert"> <wrap-text>false</wrap-text> <preserve-styles>true</preserve-styles> </options> return dbk:convert(fn:doc("http://example.com/mydoc.xhtml"), $options)