Loading TOC...

MarkLogic 9 Product Documentation
ooxml:package-parts

ooxml:package-parts(
   $package as node()
) as node()*

Summary

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.

Example

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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.