[CPS-devel] Cannot upload OpenOffice.org Document [Resolved]

Adi Setyono adi at bappenas.go.id
Thu Feb 23 12:21:40 CET 2006


Thank you for the clue, its been fixed. Now CPSOOo is working....cool!
The problem is with the xsltproc that is not working on my machine, 
after fixing this problem CPSOOo is live
Actually  there  is  still  need another touch with the 
mimetypes_registry.....because if DocBook XML Document mimetype is not 
exist in the mimetypes_registry then CPSOOo will not working, just for 
the info in case its deleted or missing like mine.

Thank you,

M.-A. DARCHE wrote:
> 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,
>
>   






More information about the cps-devel mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.