This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: one or two stylesheets to output html and pdf(fo) fromthe same x ml source?


Hans Braumüller wrote:
> 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 ?

This is one way, where the common code is a "library" xslt which the other
two stylesheets "import".

You could also consider a different ("pipelined") arrangement, where the
common code produces an intermediate document (perhaps in HTML?), and this
is then processed further by the other stylesheets.

                                ----> XML-to-fancy-HTML.xsl ---> "fancy"
HTML document.
                               /
XML ---> XML-to-plain-HTML.xsl
                               \
                                ----> XML-to-FO.xsl -----------> FO document


Cheers Hans! Good luck!

Con


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]