Hi All,

Are there anybody out there, who is working with Openoffice generator in 
Cocoon?

I tried to setup it based on Yves Vindevogel's wiki document, but I get an 
empty document:
--------------------------------------
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<!--The CSS style header method for setting styles-->
<style type="text/css">
<!--
 BODY { background-repeat: no-repeat }
        *.OOo_defaults {
                margin-top:0cm; margin-bottom:0cm; }
         
            //-->
</style>
</head>
<body></body>
</html>
--------------------------------------

and when I try to read content.xml from sxw via cocoon 
(http://localhost:8888/mount/oo/sxw/123.sxw!/content.xml) I get this empty 
result:
<html><body></body></html>

It seems to be cocoon cannot get a valid content.xml or "somebody" convert 
it.

My sitemap.xmap is:
----------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!-- CVS $Id: sitemap.xmap,v 1.15 2003/09/07 06:16:41 vgritsenko Exp $ 
--><map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>

 <map:pipelines>
    <map:pipeline>
    
        <map:match pattern="sxw/*.html">
            <map:aggregate element="office:document">
                <map:part 
src="jar:http://localhost:8888/mount/oo/sxw/{1}.sxw!/content.xml"/>
                <map:part 
src="jar:http://localhost:8888/mount/oo/sxw/{1}.sxw!/meta.xml"/>
                <!-- additional for styles -->
                <map:part 
src="jar:http://localhost:8888/mount/oo/sxw/{1}.sxw!/styles.xml"/>

            </map:aggregate>

            <!-- for using the standard OO transformation -->
            <map:transform src="xsl/main_html.xsl"> 
                <map:parameter name="metaFileURL" 
value="http://localhost:8888/mount/oo/sxw/{1}/meta.xml"/>
                <map:parameter name="stylesFileURL" 
value="http://localhost:8888/mount/oo/sxw/{1}/styles.xml"/>
                <map:parameter name="absoluteSourceDirRef" 
value="http://localhost:8888/mount/oo/sxw/{1}.sxw"/>
                <map:parameter name="jaredRootURL" 
value="http://localhost:8888/mount/oo/sxw/{1}"/>
            </map:transform>
                                                  
            <!--  Uncomment this, and comment previous if you want to use 
html.oowriter.xsl instead of standard OO transformation
            <map:transform src="xsl/html.oowriter.xsl"/> -->

            <map:serialize type="html"/>
        </map:match>
        
        <map:match pattern="*.sxw">
            <map:read src="{1}.sxw" mime-type="application/zip"/>
        </map:match>
        
        <!-- additional for xml reading -->
        <map:match pattern="sxw/*/**.xml">
            <map:read src="jar:http://localhost:8888/mount/oo/sxw/{1}.sxw!/{2}.xml"; 
mime-type="text/plain"/>
            <map:serialize type="xml"/>
        </map:match>
        
        <!-- additional for images -->
        <map:match pattern="sxw/*/Pictures/*.png">
            <map:read 
src="jar:http://localhost:8888/mount/oo/sxw/{1}.sxw!/Pictures/{2}.png"; 
mime-type="image/png"/>
        </map:match>
                                                                                       
                                                                                       
  
        <map:match pattern="sxw/*.sxw">
            <map:read src="sxw/{1}.sxw" mime-type="application/zip"/>
        </map:match>
                                                                                       
    
    </map:pipeline>
 </map:pipelines>
</map:sitemap>

----------------------------------------------------

My environment:
Debian GNU Linux 3.0
java 1.4 from sun,
Cocoon 2.1.3
and Openoffice.org 1.1.0 hungary language

-- 
many thanks,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to