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

RE: Is letting the browser transform XML to XHTML usin

Subject: RE: Is letting the browser transform XML to XHTML using XSLT a good choice?
From: "Nathan Young -X \(natyoung - Artizen at Cisco\)" <natyoung@xxxxxxxxx>
Date: Thu, 2 Mar 2006 10:06:48 -0800
pdf css
> > And what's the best method of generating PDFs from
> > these XML files?
>
> One way is to use XSL:FO - I don't know if that's the best.  One
> problem if you are publishing to the web and to PDF is that you have
> to maintain both an XSLT and an XSL:FO when a change is needed.
> Another option maybe to publish to XHTML and then look for an XHTML ->
> PDF conversion... I wonder if anyone has a solution for this now?

Prince is great for this:

http://www.princexml.com/

It's an XML to PDF engine that uses css to hold formatting information.
When your content is already XHTML and you have css that makes it ready
for screen display you can get a PDF that looks just like your browser
screen with no extra work (actually it's not perfectly identical, if
your pdf users are picky you need to treat Prince output as a browser
and test for that output just like you do for IE and Firefox).

If you want more features in your PDF, you can layer print only css on
top of your web stuff and get things like table of contents, print
headers and footers, page breaks (before sections for example), etc.
Because prince supports css3 you can do a lot of fancy stuff.  Check out
boom for an example:

http://www.alistapart.com/articles/boom

Although prince is not an exact drop in replacement for FO, I still
think it could take over pdf generation for the vast majority of
documents that have a web representation.

----->Nathan

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.