0
votes

How do I install MarkLogic extensions? I want to be able to use the OOXML library in the "http://marklogic.com/openxml" namespace. How do I integrate that?

Thanks!

EDIT: Here's what I'm trying to do in the console:

import module namespace ooxml= "http://marklogic.com/openxml" at
       "/MarkLogic/openxml/word-processing-ml-support.xqy";
let $para1 := ooxml:create-paragraph("Hello, World!")
let $para2 := ooxml:create-paragraph("Welcome to Unit 6!")
let $paras := ($para1, $para2)
return xdmp:save("/path/to/test.docx",ooxml:create-simple-docx(ooxml:document(ooxml:body($paras))))

What I'm getting is the following:

[1.0-ml] SVC-FILOPN: File open error: open 'Apps/MarkLogic/openxml/word-processing-ml-support.xqy': No such file or directory
1

1 Answers

1
votes

Just like it says at http://docs.marklogic.com/ooxml:package-parts

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)