Tuesday, February 2, 2010

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:

Namespace attribute can be written as:
-----------------Root element of XSL-FO documents. You can have the whole document within these tags.
----------------Contains page templates
----------------Contains a single page template
------------------------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.
XML Attributes 

Explain XML Attributes with an example.

The attributes in XML provide additional information about elements. Take a look at the following example:
”>

XML Elements vs. Attributes.

XML elements as well as attributes can be used to provide the same information about an entity in an XML database. The only difference lies in the way they are written. For example:
..... is an example of using attributes. 
The same information can be provided in the element form as follows:

Da Vinci Code

What are the problems with using XML attributes?

It is preferred storing the data using the XML elemental form as it becomes very convenient to access and modify the data. Also the use of attributes is limited as they cannot contain multiple values, cannot contain tree structures nor are expandable.

0 Comments: