Adi Setyono a écrit : > > I just realize that ooo_to_html transformation is not working. > Because the preview link is not showing, and when i click Export > DocBook XML link its come up with zip files but the xml file inside it > is empty, just None text inside the xml file. > > What is the problem? how to make CPSOOo work? does anyone have a clue? > My CPS is installed on linux Debian Woody. >
Hello Adi, First, to make CPSOOo work, you need the xsltproc binary (from the Debian xsltproc package) and either the elementtree python module (from the Debian python2.3-elementtree package) or the lxml python module (not packaged in Debian Woody). You should also know that CPSOOo relies on 2 chained transformations: ooo_to_docbook -> docbook_to_html and not ooo_to_html Your problems can lie in one of ooo_to_docbook, docbook_to_html, or both. Check that both of those transforms are available. If you have all those needed components the error might be deeper and debuging might be needed, but it should be really easy to spot where the problem lies: You just have to comment the line self.cleanDir(tmpdir) which appears both in PortalTransforms/transforms/ooo_to_docbook.py and PortalTransforms/transforms/docbook_to_html.py. Then restart your Zope instance and you can see in log/event.log lines such as: 2006-02-15T17:10:02 DEBUG(-200) ooo_to_docbook cmd = cd "/tmp/tmpJ8WHg_" && /usr/local/zope/instance/cps1/Products/PortalTransforms/transforms/ooo2dbk/ooo2dbk.py --dbkfile unknown.docb.xml /tmp/tmpJ8W Hg_/unknown.sxw 2>"unknown.log-xsltproc" 2006-02-15T17:10:03 DEBUG(-200) docbook_to_html cmd = cd "/tmp/tmp-77uq_" && /usr/bin/xsltproc --novalid --stringparam ignore.image.scaling 1 /usr/local/zope/instance/cps1/Products/PortalTransforms/tr ansforms/docbook/custom-xhtml.xsl /tmp/tmp-77uq_/unknown.docb.xml >"unknown.docb.html" 2>"unknown.docb.log-xsltproc" You can then read the files in /tmp/tmpJ8W/ and /tmp/tmp-77uq_ to find out where the problem lies. Do not hesitate to post once you have those info. I'll put this help above in the CPSOOo product since users repeatedly have problems having a full working CPSOOo. Cheers, -- Marc-Aurèle DARCHE NUXEO (Paris, France) http://nuxeo.com/ Nuxeo Collaborative Portal Server (CPS) http://www.cps-project.org/ Gestion de contenu web / portail collaboratif / logiciel libre _______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
