This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: one or two stylesheets to output html and pdf(fo) fromthe same x ml source?
- From: "Braumüller, Hans" <h dot braumueller at hanseorga dot de>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 2 Jul 2002 09:45:54 +0200
- Subject: RE: [xsl] one or two stylesheets to output html and pdf(fo) fromthe same x ml source?
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hello J. Pietschmann,
thanks fot your sugestion! Starting from my intuition, i would prefer also
two stylesheets.
Maybe it is effective to work the two main stylesheets like a container each
other, for html and pdf, and calling from there same templates, where the
transformation of the application logic layes?
------------------------ XML -------------------------------------
1.xsl --> html pdf <-- 2.xsl
<table> <fo:table>
| |
| |
<---> 3. transformation xsl(t) <--->
Good approach ?
Thanks,
Hans Braumüller
-- + --
Networking Artist
http://crosses.net
http://kunstserie.com
> >
> > My question is what is better to code in aspects of easy to use,
> > optimization, loading time and maintenance, working with
> one stylesheet
> > using different namespaces to output these two kinds of
> display or coding
> > two main separated stylesheets?
>
> The usual approach is to use two different style sheets.
> After all, you are adressing two different URLs.
> Sometimes a pipelining approach as provided by Cocoon
> can be an advantage: transform a bunch of documents
> with a varying XML structure into an XML with some sort
> of "display" structure and then transform this either
> into HTML or XSLFO.
>
> J.Pietschmann
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list