On 07.11.2003 16:21, Asim Raja wrote:
Hi,

I'm interested in using use Cocoon to convert an html page to a PDF file. I
would like to feed the URL of the page and get the PDF. I would like to know
if CSS used by the webpage would be supported by the HTMLGenerator and the
PDF Serializer?

Hello Asim,


what you want to do sounds reasonable, but I don't know of any product that is able to handle this. The reason is simple I guess: a complete browser functionality must be implemented for understanding HTML + CSS (have older HTML versions or recent XHTML in mind).

The correct approach IMO would be a common codebase for both output formats PDF and HTML. This XML structure will be transformed either into HTML and XSL Fo. But the stylesheets for this transformation must be written by hand. Or you use a common XML structure for which both stylesheet exists, e.g. the XDocs format used for Cocoon documentation and so in Forrest.

If you have a look at http://cocoon.apache.org/2.1/ you will see, that both HTML and PDF are generated from our XML documents. It is done using Forrest (http://xml.apache.org/forrest/).

Joerg


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



Reply via email to