XSL-FO interview questions
XSL-FO - posted on August 29, 2008 at 17:10 pm by Amit
Satpute
What is XSL-FO?
XSL-FO stands for Extensible Stylesheet Language Formatting Objects. It is used
to format XML data and is also a W3C recommendation.
What is XSL-FO Documents? Explain XSL-FO Documents structure.
XSL-FO documents are XML files (.fo / .fob OR .xml – for being accessible by XML
editors) with output information about the layout and contents.
Document Structure:
As usual they need to start with the version and the encoding declaration:
<?xml version="1.0" encoding="ISO-8859-1"?>
<fo:root> </fo:root>
Namespace attribute can be written as:
<fo:root
xmlns:fo="http://www.w3.org/1999/XSL/Format">-----------------Root element
of XSL-FO documents. You can have the whole document within these tags.
<fo:layout-master-set> ----------------Contains page templates
<fo:simple-page-master>----------------Contains a single page template
<fo:page-sequence> ------------------------Describes the page contents
What is XSL-FO Processors?
XSL-FO processors (e.g. XSL Formatter, Xinc Beta Release, Scriptura) are
programs that format XSL document output.
Most of them can also output PDF documents, quality print, HTML etc.
|