Loading TOC...

ooxml:package-uris

ooxml:package-uris(
   $package as node()
) as xs:string*

Summary

This function returns the list of files in the zip package.

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-uris($pkg)
=> The sequence comprising th list of documents in the archive, 
for example:
("[Content_Types].xml", "_rels/.rels", "word/_rels/document.xml.rels",
"word/document.xml", "word/footer3.xml", "word/footer2.xml", 
"word/footer1.xml", "word/endnotes.xml", "word/footnotes.xml", 
"word/_rels/header1.xml.rels", "word/header1.xml", 
"word/media/image1.wmf", "word/theme/theme1.xml", 
"word/_rels/settings.xml.rels", "word/settings.xml", 
"word/styles.xml", "customXml/itemProps1.xml", "word/numbering.xml",
"customXml/_rels/item1.xml.rels", "word/fontTable.xml", 
"docProps/app.xml", "docProps/core.xml", "customXml/item1.xml", 
"word/webSettings.xml", "docProps/custom.xml")


  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.