Loading TOC...

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
$packageThe 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.

  

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy