[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: one or two stylesheets to output html and pdf(fo)

Subject: RE: one or two stylesheets to output html and pdf(fo) fromthe same x ml source?
From: "Conal Tuohy" <conalt@xxxxxxxxxxxxxxx>
Date: Tue, 2 Jul 2002 20:27:12 +1200
output html as pdf
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.