dbk:convert( $doc as node()?, $options as element()? ) as node()*
Convert XHTML to DocBook lite vocabulary, if possible. The section structuring depends on the presence of div elements with mlsection markers, as produced by xhtml:restructure.
xquery version "1.0-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)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.