Hi Lakshmi, The boilerplate functionality will insert Word documents saved in OPC format into the document being authored.
OPC stands for Open Packaging Convention and is essentially the format you get when you Save a Word doc as XML. Here's a blog post on OPC format: http://developer.marklogic.com/blog/smallchanges/2009-01-08 To get the required format, Save your Word document as XML. (Note: Save As XML, NOT Word 2003 XML, as its different.) If you want to create the OPC format programmatically from an extracted .docx, there are functions in the Toolkit XQuery API that can help. The post and XQuery functions can help explain how to work with images in Word as well. -pete From: [email protected] [mailto:[email protected]] On Behalf Of Lakshmi Narasimhan Sent: Thursday, April 14, 2011 6:58 AM To: [email protected] Subject: [MarkLogic Dev General] Authoring App for Word - Boilerplate Does not Import I have installed and configured "Authoring App for Word(r)<http://developer.marklogic.com/code/marklogic-sample-authoring>". Configured registry, authoring.js and config.xqy to the HTTP server. HTTP server is associated with a database. I ingested a ABC.docx (MS Word 2007) file into database as binary with URL /ABC.docx. I modified boilerplate.xml <config:boilerplate> <config:display-label>disclaimer</config:display-label> <config:document-uri>/ABC.docx</config:document-uri> I created a new word document, in Mark Logic Add-in boilerplate tab, when I click on disclaimer, the tool tip shows /ABC.docx. When I click on disclaimer button, the text from the word document(stored in MLS) is not populated into the new word document. I extracted the XML out of word: xdmp:zip-get(doc("/ABC.docx"), "word/document.xml") and ingested the xml back in to Mark Logic. Updated boiler plate.xml as below: <config:boilerplate> <config:display-label>disclaimer</config:display-label> <config:document-uri>/ABC.docx.xml</config:document-uri> I created a new word document, in Mark Logic Add-in boilerplate tab, when I click on disclaimer, the tool tip shows /ABC.docx.xml. When I click on disclaimer button, the text from the word document(stored in MLS) is not populated into the new word document. Is there a different format in which I should be storing office documents to include them via boiler plate? If so how does it work for images. etc Thanks Lakshmi
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
