This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] website and jsp
- From: "S. Alan Ezust" <sae at mcs dot suffolk dot edu>
- To: docbook-apps at lists dot oasis-open dot org,mi3468 at fh-wedel dot de
- Date: Fri, 2 Jul 2004 17:55:27 -0400
- Subject: Re: [docbook-apps] website and jsp
- Organization: Suffolk University, Math and CS Department
- References: <871xjxmoon.fsf@oz.fapse.ulg.ac.be> <87wu1o3uq7.fsf@oz.fapse.ulg.ac.be> <200407011244.01582.mosterme@gmx.de>
So there are two completely different approaches.
1. Customize the XSL stylesheet you are already using, which currently
generates XHTML, and have it stick JSP tags inside the output.
2. Write a JSP which spits out an XSLT-generated-docbook inbewteen JSP tags.
Doesn't approach 2 requires the XSLT to read and parse the entire document
before you can transform the subtree you wish to generate, for each page you
wish to view?
Approach 2 will require a lot more server-side XSLT transformations, using a
very complicated stylesheet, and possibly a HUGE document (even if you are
only processing a small subtree, it still requires the parsing of the whole
doc).
Approach 1, sticking a few XML-format JSP tags into the generated output and
writing to a file with a .jsp extension instead of a .html extension, would
be the most efficient use of CPU time, especially for large docbooks which do
not change frequently.
Anyway, I've been thinking about this problem myself, but I have not solved it
yet. I'm trying to use XSLTproc to generate JSP tags in the sheets.
On July 1, 2004 06:44 am, Michael Ostermeier wrote:
> Am Donnerstag, 1. Juli 2004 12:08 schrieb Arnaud Vandyck:
> > The idea was to perform transformation before so the page could be
> > generated faster, but maybe I'm wrong and the transform process is
> > really fast? I got to try this...
>
> the performance should propably be ok, I do a xml to fo to pdf transform
> with a filter... but if the transform is to slow, you might want to add
> cache for transformed pages in the filter...
>
> To unsubscribe from this list, send a post to
> docbook-apps-unsubscribe@lists.oasis-open.org, or visit
> http://www.oasis-open.org/mlmanage/.
--
S. Alan Ezust
Ottawa, Ontario, Canada
http://cartan.cas.suffolk.edu/~sae
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.