Hi all,


I have a script that creates word docs of xml files. It returns a zipped file 
of all the word docs.


1. let $xml-files := local:get-chapter()

2. let $word-files := exp:create-wordML-from-books($xml-files)

3. let $zip := xdmp:zip-create(<parts xmlns="xdmp:zip">
                                <part>doc1.doc</part>
                                <part>doc2.doc</part>
                            </parts>,
                            $word-files)
4. return (
         xdmp:set-response-content-type("application/zip"),
         $zip
       )





1.       Is there a way to re-name the response? I can set the type of the 
response. I want also to rename it





2.       The output of the step in line 2 are word ML files. When I save the 
output of this step to the file system, the word ML files have the Xml 
declaration



<?xml version="1.0" encoding="UTF-8"?>







But when I save the output of the zip-create step, I lose that declaration. How 
do we tell zip-create to keep the XML declaration?



Best,



-Samah

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to