Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] one or two stylesheets to output html and pdf(fo) from the same xml source? [Thread Next] Re: [xsl] one or two stylesheets to output html and pdf(fo) fromthe same x ml source?To: Date: 7/1/2002 11:55:00 AM Braumüller, Hans wrote: i am thinking to start to incorporate pdf - documents in a web application. So if the user click on the button pdf i want to display a pdf document transformed from the same xml-source, from which my sytlesheet have had generated the html page, he is using. 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
