Academic Tutorials



English | French | Portugese | German | Italian
Google

Home Source Codes E-Books Downloads Contact Us About Us

XSL-FO Tutorial
XSL-FO Introduction
XSL-FO Documents
XSL-FO Areas
XSL-FO Output
XSL-FO Flow
XSL-FO Pages
XSL-FO Blocks
XSL-FO Lists
XSL-FO Table
XSL-FO Software

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
AJAX Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PHP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
.NET (dotnet)
Microsoft.Net
XML Web Services
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills


XSL-FO Documents

Previous Next



XSL-FO Document Structure

XSL Formatting Objects documents are XML documents, but they do not have to conform to any schema. Instead, they conform to a syntax defined in the XSL-FO specification.

XSL-FO documents contain two required section. The first section details a list of named page layouts. The second section is a list of document data, with markup, that uses the various page layouts to determine how the content fills the various document pages.

The properties of the page define by the Page layout. It can define the directions for the flow of text, so as to match the conventions for the language in question. They define the size of a page as well as the margins of that page. Most important that they can define sequences of pages that allow for effects where the odd and even pages look different.Example one can define a page layout sequence that gives extra space to the inner margins for printing purposes; this allows more space to be given to the margin where the book will be bound.

The document data portion is brake up into a sequence of flow, where each flow is attached to a page layout. The flows contain a list of blocks and each contain a list of text data, inline markup elements, or a combination of the two. Content may also be added to the margins of the document, for page numbers, chapter headings and the like.

Blocks and inline element function are the same way as for CSS, though some of the rules for padding and margins differ between CSS and FO. The direction, relative to the page orientation, for the progression of inlines and blocks can be fully specified, thus allowing FO documents to function under languages that are read different from English. The language of the FO specification, unlike that of CSS 2.1, uses direction-neutral terms like start and end rather than left and right when describing these directions.

XSL-FO's basic content markup is derived from CSS and its cascading rules. Many attributes in XSL-FO propagate into the child elements unless explicitly overridden.




Example:

<?xml version="1.0" encoding="ISO-8859-1"?><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

<fo:layout-master-set>
<fo:simple-page-master master-name="A4">
<!-- Page template goes here -->
</fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="A4">
<!-- Page content goes here -->
</fo:page-sequence></fo:root>


Explanation:

XSL-FO documents always start with an XML declaration:

<?xml version="1.0" encoding="ISO-8859-1"?>


The <fo:root> element is the root element of XSL-FO documents.


<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<!-- The full XSL-FO document goes here -->
</fo:root>
 


<fo:layout-master-set> tag element contains one or more page templates


<fo:layout-master-set>
<!-- All page templates go here -->
</fo:layout-master-set>
 


Each <fo:simple-page-master> tag element contains a single page template. Each template must have a unique name


<fo:simple-page-master master-name="A4">
<!-- One page template goes here -->
</fo:simple-page-master>
 


One or more <fo:page-sequence> tag describe the page contents. The master-reference attribute refers to the simple-page-master template with the same name:


<fo:page-sequence master-reference="A4">
<!-- Page content goes here -->
</fo:page-sequence>
 




Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • BlinkList
  • blogmarks
  • co.mments
  • connotea
  • del.icio.us
  • De.lirio.us
  • digg
  • Fark
  • feedmelinks
  • Furl
  • LinkaGoGo
  • Ma.gnolia
  • NewsVine
  • Netvouz
  • RawSugar
  • Reddit
  • scuttle
  • Shadows
  • Simpy
  • Smarking
  • Spurl
  • TailRank
  • Wists
  • YahooMyWeb

Previous Next

Keywords : xsl fo pdf, xsl tutorial, xsl attribute, xsl cdata, xsl reference, xsl example, xsl elements, xsl tags, xsl tutorials, xsl attribute, xsl name, xsl functions, w3schools xsl, xsl dtd, xsl syntax, xsl namespace, xsl variable, xsl text, xsl xpath, xsl element, xsl javascript, xsl entity, xsl css, xsl doctype, xsl count, xsl sort, xsl editor, xsl xhtml, saxon xsl, jsp xsl, xsl schema, xsl href, xsl encoding, html fo, xsl stylesheet, w3c xsl, rss xsl, xsl param, xsl template, xsl include, xsl html, xsl if, xsl processor, xsl parameter, xsl function, docbook xsl, xsl output, xsl id, xsl node, xsl date, xsl select, xsl dom, c# xsl, xsl parser, svg xsl, fo reference, xalan xsl, xsl tree


HTML Quizes
HTML Quiz
XHTML Quiz
CSS Quiz
TCP/IP Quiz
XML Quizes
XML Quiz
XSL Quiz
XSLT Quiz
DTD Quiz
Schema Quiz
XForms Quiz
XSL-FO Quiz
XML DOM Quiz
XLink Quiz
XQuery Quiz
XPath Quiz
XPointer Quiz
RDF Quiz
SOAP Quiz
WSDL Quiz
RSS Quiz
WAP Quiz
Web Services Quiz
Browser Scripting Quizes
JavaScript Quiz
VBScript Quiz
AJAX Quiz
DHTML Quiz
HTML DOM Quiz
WMLScript Quiz
E4X Quiz
Server Scripting Quizes
ASP Quiz
PHP Quiz
PERL Quiz
SQL Quiz
ADO Quiz
.NET (dotnet) Quizes
Microsoft.Net Quiz
XML Web Services Quiz
ASP.Net Quiz
.Net Mobile Quiz
C# : C Sharp Quiz
ADO.NET Quiz
VB.NET Quiz
Multimedia Quizes
SVG Quiz
Flash Quiz
Media Quiz
SMIL Quiz
Web Building  Quizes
Web Browsers Quiz
Web Hosting Quiz
W3C Quiz
Web Building Quiz
Web Quality Quiz
Web Semantic Quiz
Web Careers Quiz
Java Quizes
Java Quiz
JSP Quiz
Servlets Quiz
Struts Quiz
EJB Quiz
JMS Quiz
JMX Quiz
Programming Langauges Quizes
C Quiz
C++ Quiz
Visual Basic Quiz
Data Structures Using C Quiz
Soft Skills Quizes
Communication Skills Quiz
Time Management Quiz
Project Management Quiz
Team Work Quiz
Leadership Skills Quiz
Corporate Communication Quiz
Negotiation Skills Quiz

Privacy Policy
Copyright © 2003-2008 Vyom Technosoft Pvt. Ltd., All Rights Reserved.