cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Christophe Kermagoret <...@babelobjects.com>
Subject InflatedFileGenerator
Date Wed, 19 Nov 2003 12:20:24 GMT
Hi List,
I wrote a very simple InflatedFileGenerator that takes a zip file and 
extract one item to use it as source for
FileGenerator.

It's useful if you want to use, for example, standart OpenOffice.org 
format .sxw instead of flat xml.
Of course you can use it with .zip format.

Usage example :
...
        <map:match pattern="process-ooo">
            <map:generate type="inflated" src="ooo/presentation.sxw">
                <map:parameter name="directory" value="ooo"/>
                <map:parameter name="file" value="content.xml"/>
            </map:generate>
            <map:transform src="test/ooo-content2sdbk.xsl"/>
            <map:serialize type="xml"/>
        </map:match>
...

where :
* directory is the dir where the file is going to be inflated
* file is the name of the file you want to get

Is there anybody interested ?
Where do I put it ?

Regards,

-- 

Jean-Christophe Kermagoret
jck@BabelObjects.Com




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message