You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Georges Roux <ge...@pacageek.org> on 2003/06/10 13:18:35 UTC
OOo
Hi,
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: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org