Marco Stolpe wrote:


It's clear to me that I can produce one single PDF file with Cocoon, but how can I produce an online (or zipped download) version distributed among several output files in HTML format? It would be painful for any reader to look at one single HTML file consisting of maybe a hundred of pages. I'm not only interested in a solution for DocBook, but a general one. For example, it would be nice to create a presentation consisting of several slides in one XML file, but only to show one single slide on screen.

as someone gave you already feedback about the docbook problems I want to suggest a more general approach:



One solution which came to my mind was to use XSP together with fields in a query string pointing to the portion of the document the user likes to read. But I'm asking myself if this is the best solution available, since using XSP wouldn't be a very portable solution, would it? Moreover, could I still produce a static version of the document (consisting of several files) using Cocoon from the command line with XSP?


I think XSP is not necessarily required. you can do this in a stylesheet approach too. but it is very dependend on the problem.

consider a document having parts like this:

<part id="i1">
...
</part>

<part id="i2">
...
</part>

and so on, then you could write "simply" XSLT stylesheets that create an index page with links, as well as stylesheet(s) that render one part with a previous/next function.

So you see, XSP is not required here, though possible.

What is indeed far more difficult if page breaks have to be done using a more complex logic; e.g. pages should be approximately of similar size; so that you need to cound words and implement some "intelligent" page break logic or something... but as long as you can break at particular structure elements, it is not so difficult to solve.



Alex


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



Reply via email to