I try to transform xml files to OpenOffice.org format (.sxw) with cocoon
because sxw is a zip file format, I put this in my sitemap:
<map:serializer name="OOo" mime-type="application/vnd.sun.xml.writer" src="org.apache.cocoon.serialization.ZipArchiveSerializer"/>
<map:match pattern="testfile.sxw">
<map:generate src="OOo.xml"/>
<map:transform src="stylesheets/simple.xsl"/>
<map:serialize type="OOo"/>
</map:match>here is OOo.xml <?xml version="1.0" encoding="UTF-8"?>
<!--
Document : OOo.xml
Created on : 17 avril 2003, 00:35
Author : georges
Description:
the sxw file format form OpenOffice.org is a zip format.
--><zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0"> <zip:entry name="content.xml" src="cocoon://OOo/content.xml"/> <zip:entry name="meta.xml" src="cocoon://OOo/meta.xml"/> <zip:entry name="settings.xml" src="cocoon://OOo/settings.xml"/> <zip:entry name="styles.xml" src="cocoon://OOo/styles.xml"/> </zip:archive>
is that correct or anybody knows other way to do it?
Georges
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
