QA


Q&A

Q.

Are XSL-FO documents usually coded by hand?

A.

No. In fact, XSL-FO is intended to be generated automatically using a transformation language such as XSLT. In a real-world scenario, you would likely use XSLT to automatically transform an XML document into an XSL-FO document, and then use an XSL-FO processor to generate a PDF document automatically. All these steps would take place behind the scenes without any manual involvement. In this lesson I showed you the "brute force" method to creating an XSL-FO document by hand and converting it to PDF so that you could better understand how the XSL-FO language works.

Q.

Should I consider switching from CSS to XSL-FO to style my XML documents?

A.

It depends entirely upon your specific circumstances. If you're talking about styling XML documents for the web, the answer is currently a resounding no. There just isn't enough XSL-FO browser support to consider it a viable web technology at the moment. However, if you're talking about styling XML content for print, XSL-FO may very well be a good option as a high-powered replacement for CSS.




Sams Teach Yourself XML in 24 Hours
Sams Teach Yourself XML in 24 Hours, Complete Starter Kit (3rd Edition)
ISBN: 067232797X
EAN: 2147483647
Year: 2005
Pages: 266

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net