ooxml:package-parts( $package as node() ) as node()*
This function returns the documents within the zip package. Typically, the parts are returned as document nodes. They are returned in the order the package uris are returned, which is the manifest order.
Parameters | |
---|---|
package | The zip package. |
xquery version "1.0-ml"; import module namespace ooxml= "http://marklogic.com/openxml" at "/MarkLogic/openxml/package.xqy"; let $pkg := xdmp:document-get("c:/tmp/test.docx") return ooxml:package-parts($pkg)[4] => The fourth document in the archive, which is the word/document.xml part in this example.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.