cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Georges Roux <georges.r...@pacageek.org>
Subject OOo
Date Tue, 10 Jun 2003 11:18:35 GMT
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


Mime
View raw message