[Accessibility conventions are described at the bottom of the page]
*** This is a free preview excerpt of a commercial publication. ***
Table of Contents
1. Introducing XSL-FO
1.1 Fine-grained control of layout nuances
1.1.1 Fine-grained control of layout nuances
1.2 The many existing deployments of XSL-FO
1.2.1 The many existing deployments of XSL-FO
2. The context of XSL-FO
2.1 The XML family of Recommendations
2.1.1 Extensible Markup Language (XML)
2.1.2 XML information links
2.1.3 Document Style Semantics and Specification Language (DSSSL)
2.1.4 Cascading Stylesheets (CSS)
2.1.5 Styling structured information
2.1.6 Extensible Stylesheet Language Transformations (XSLT)
2.1.7 Extensible Stylesheet Language (XSL/XSL-FO)
2.1.8 Styling semantics and vocabularies
2.1.9 Outboard XSLT and XSL-FO processes
2.1.10 Transforming and rendering XML information using XSLT and XSL-FO
2.1.11 Using XSL-FO as an intermediate form
2.1.12 Generating XSL-FO instances
2.1.13 Using XSL-FO on a server
2.1.14 Historical development of the XSL and XSLT Recommendations
2.1.15 XSL information links
2.2 Examples
2.2.1 Hello world example
2.2.2 A detailed example of flowed content
2.2.3 Training material example
3. Basic concepts of XSL-FO
3.1 Basic concepts
3.1.1 Layout-based vs. content-based formatting
3.1.2 Formatting vs. Rendering
3.2 Processing model
3.2.1 Processing model of formatting
3.3 Formatting object XML vocabulary
3.3.1 Vocabulary structure
3.3.2 Direct vs. constraint property specification
3.3.3 Property value expressions
3.3.4 Inherited properties
3.3.5 Shorthand properties
3.3.6 Conformance
3.3.7 Top-level formatting objects
3.3.8 <root> Object
3.3.9 <layout-master-set> Object
3.3.10 <page-sequence> Object
3.3.11 <page-sequence-wrapper> Object
3.3.12 <flow> Object
3.4 Groupings of formatting objects for flow
3.4.1 Groupings of formatting objects for flow
3.4.2 Block-level objects
3.4.3 Inline-level objects
3.4.4 Neutral objects
3.4.5 Out-of-line objects
3.4.6 Out-of-line inline-level objects
4. Area and page basics
5. Generic body constructs
6. Tables
7. Floats, footnotes and containers
8. Flows, static content and page geometry sequencing
8.1 Page Sequence Master Interleave (PSMI)
8.1.1 Changing the page geometry based on authored content
9. Bookmarks and indexes
10. Breaks, keeps, spacing, borders and backgrounds
11. Supplemental objects
12. Interactive objects
13. Where XSL-FO 1 falls short
A. Using XSLT with XSL-FO
A.1 XSLT language features supporting XSL-FO
A.1.1 <xsl:attribute-set> instruction
A.1.2 Simpler list and footnote structures in XSL-FO
A.2 XSL-FO language features similar to XSLT and XPath
A.2.1 Common errors writing expressions
B. XSL-FO expressions
B.1 XSL-FO expressions
B.1.1 Production summary
B.2 XSL-FO functions
B.2.1 Function summary
B.2.2 Function groupings
B.2.3 Functions summarized by name
C. XSL-FO object summary
C.1 Formatting objects
C.1.1 Objects summarized by name
C.1.2 Prototypical hierarchy
C.1.3 Objects summarized by type
D. XSL-FO property summaries
D.1 Property groupings
D.1.1 Common Absolute Position Properties
D.1.2 Common Accessibility Properties
D.1.3 Common Aural Properties
D.1.4 Common Border, Padding, and Background Properties
D.1.5 Common Font Properties
D.1.6 Common Hyphenation Properties
D.1.7 Common Margin Properties-Block
D.1.8 Common Margin Properties-Inline
D.1.9 Common Relative Position Properties
D.2 Data types
D.2.1 Property data types
D.2.2 Recommendation bibliography
D.2.3 Format tokens from XSLT 1.0 subset
D.3 Property summaries
D.3.1 Inherited properties
D.3.2 Shorthand properties
D.3.3 Property summary
E. Sample tool information
Notices
Copyrights
[[1] - Pursuant to [http://www.w3.org/Consortium/Legal/ipr-notice.html], some information included in this publication is from copyrighted material from the World Wide Web Consortium as described in [http://www.w3.org/Consortium/Legal/copyright-documents.html]: Copyright (C) 1995-2008 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. The status and titles of the documents referenced are listed in the body of this work where first used.
[1] - Other original material herein is copyright (C) 1998-2008 Crane Softwrights Ltd. This is commercial material and may not be copied or distributed by any means whatsoever without the expressed permission of Crane Softwrights Ltd.
]
Disclaimer
[[1] - By purchasing and/or using any product from Crane Softwrights Ltd. ("Crane"), the product user ("reader") understands that this product may contain errors and/or other inaccuracies that may result in a failure to use the product itself or other software claiming to utilize any proposed or finalized standards or recommendations referenced therein. Consequently, it is provided "AS IS" and Crane disclaims any warranty, conditions, or liability obligations to the reader of any kind. The reader understands and agrees that Crane does not make any express, implied, or statutory warranty or condition of any kind for the product including, but not limited to, any warranty or condition with regard to satisfactory quality, merchantable quality, merchantability or fitness for any particular purpose, or such arising by law, statute, usage of trade, course of dealing or otherwise. In no event will Crane be liable for (a) punitive or aggravated damages; (b) any direct or indirect damages, including any lost profits, lost savings, damaged data or other commercial or economic loss, or any other incidental or consequential damages even if Crane or any of its representatives have been advised of the possibility of such damages or they are foreseeable; or (c) for any claim of any kind by any other party. Reader acknowledges and agrees that they bear the entire risk as to the quality of the product.
]
Preface
Preface
The main content of this book is in an unconventional style primarily in bulleted form
[[1] - derivations of the book are used for instructor-led training, requiring the succinct presentation
[[2] - note the exercises included in instructor-led training sessions are not included in the book
][1] - derivations of the book can be licensed and branded for customer use in delivering training
[1] - the objective of this style is to convey the essence and details desired in a compact, easily perused form, thereby reducing the search for key words and phrases in lengthy paragraphs
[1] - each chapter of the book corresponds to a module of the training
[1] - each page of the book corresponds to a frame presented in the training
[1] - a summary of subsections and their pages is at the back of the book
]
Much of the content is hyperlinked both internally and externally to the book in the 1-up full-page sized electronic renditions:
[[1] - note when using the Acrobat Reader for navigation, the history "back" keystroke sequence is "Ctrl-Left"
[1] - page references, e.g.: [Chapter 3.]
[[2] - the back-of the book index is hyperlinked to the body of the book
[2] - the letter references at the bottom of each page are hyperlinked to the index
][1] - construct references are typeset with conventions
[[2] - formatting objects are in monospaced text in brackets, e.g.: <[basic-link]>
[2] - properties are followed by "=", e.g.: [baseline-shift=]
[2] - data types are in proportional text in brackets, e.g.: <[angle]>
][1] - references to sections of the Recommendation are in parentheses, e.g.: ([7.13.3])
[1] - external references are in monospaced text, e.g.: [http://www.w3.org/TR/2001/REC-xsl-20011015/xslspec.html]
[1] - chapter references in book summary
[1] - section references in chapter summary
[1] - subsection references in table of contents at the back of the book
[1] - no hyperlinks are present in the cut, stacked, half-page, or 2-up renditions of the material
]
Prologue
This book is oriented to the XSL-FO stylesheet writer, not the XSL-FO processor implementer
[[1] - certain behaviors important to an implementer are not included
[1] - objective to help a stylesheet writer understand the language facilities needed to solve their problem
[[2] - a language reference arranged thematically to assist comprehension
[2] - a different arrangement than found in the Recommendation itself
]]
This book covers every formatting object of XSL-FO both versions 1.0 and 1.1:
[[1] - [F1.0]content specific to XSL-FO 1.0 is marked with a "1.0" icon at the beginning of the line
[1] - [F1.1]content specific to XSL-FO 1.1 is marked with a "1.1" icon at the beginning of the line
]
First two chapters are introductory in nature
[[1] - overview of context of XSL-FO amongst other members of the XML family of Recommendations
[1] - basic flow diagrams illustrate use of XSL-FO
[1] - basic terminology and concepts are defined and explained
]
Third chapter covers the basics of the area model and page model
[[1] - an understanding of the conceptual rendering areas being created by the stylesheet writer
[1] - important to understand these models in order to apply the language features
]
Fourth through twelfth chapters address XSL-FO vocabulary
[[1] - all objects are described in detail and their properties are summarized
[1] - significant or important properties are highlighted and described
]
Thirteenth chapter outlines where the XSL-FO vocabulary falls short
[[1] - formatting requirements that are often needed but not available
]
First annex overviews issues of XSLT when working with XSL-FO
[[1] - dependencies on XSLT by XSL-FO
[1] - issues to remember when writing XSLT
]
Second annex covers XSL-FO expressions
[[1] - rules when writing expressions
[1] - issues to remember
]
Third and fourth annexes include object and property summaries derived from the Recommendation
[[1] - groupings of objects and properties
[1] - alphabetical lists of objects and properties
[1] - print-oriented summary of all productions
]
Last annex addresses questions regarding tools
[[1] - lists of questions for processor implementers when assessing tool capabilities
]
External ZIP file included with the purchase of the book
[[1] - all of the complete scripts utilized in the documentation as stand-alone files ready for analysis and/or modification
]
Epilogue
Where To Go From Here?
The work on XSL and XSLT continues:
[[1] - all XSLT, XPath and XSL-FO are now full W3C Recommendations
[1] - long list of future feature considerations already being examined for new releases of the technology
[1] - new products are continually being announced
[1] - feedback is necessary from users like you!
[[2] - use the XSL mail lists to contribute:
[[3] - [http://www.mulberrytech.com/xsl/xsl-list/]
[3] - [http://groups.yahoo.com/group/XSL-FO]
[3] - [http://lists.w3.org/Archives/Public/www-xsl-fo/]
][2] - contact the XSL editors with comments about the specification:
[[3] - xsl-editors@w3.org
]]]
Colophon
These materials were produced using structured information technologies as follows:
[[1] - authored source materials
[[2] - content in numerous XML files maintained as external general entities for a complete prose book that can be made into a subset for training
[[3] - specification of applicability of constructs for each configuration
[[4] - 45- and 90-minute lecture, half-, full-, two- and three-day lecture and hands-on instruction, and book (prose) configurations
][3] - an XSLT transformation creates the subset of effective constructs from applying applicability to the complete file
[3] - content from other presentations/tutorials included semantically (not syntactically) during construct assembly
][2] - customized appearance engaged with marked sections and both parameter and general entities
[[3] - different host company logos and venue and date marginalia
[3] - changing a single external parameter entity to a key file includes suite of files for given appearance
]][1] - accessible rendition in HTML
[[2] - an XSLT stylesheet produces a collection of HTML files using Saxon for multiple file output
[2] - mono-spaced fonts and list-depth notation conventions assist the comprehension of the material when using screen-reader software
][1] - printed handout deliverables
[[2] - an XSLT stylesheet produces an instance of XSL formatting objects (XSL-FO) for rendering
[2] - XPDF [http://www.foolabs.com/xpdf] extracts raw text from PDF files for the back-of-the-book index methodology published as a free resource by Crane Softwrights Ltd.
[2] - XEP by RenderX [http://www.renderx.com] produces PostScript from XSL-FO
[2] - GhostScript [http://www.GhostScript.com] produces PDF from PostScript
[2] - the iText [http://itext.sf.net] PDF manipulation library for Java is used for page imposition by a custom Python [http://www.python.org] program running under the Jython [http://www.jython.org] environment
]]
Obtaining a copy of the comprehensive tutorial
This comprehensive tutorial on XSL-FO is available for subscription purchase and free preview download:
[[1] - "Practical Formatting Using XSL-FO (Extensible Stylesheet Language Formatting Objects)" Seventh Edition - 2008-01-27 - ISBN 978-1-894049-19-1
[[2] - the free download preview excerpt of the publication indicates the number of pages for each topic
][1] - the cost of purchase includes all future updates to the materials with email notification
[[2] - the materials are updated after new releases of the W3C specifications
[2] - the materials are updated after incorporating comments gleaned during presentations and from feedback from customers
][1] - available in PDF
[[2] - formatted as 1-up or 2-up book pages per imaged page
[2] - dimensions in either US-letter or A4 page sizes
[2] - available as either single sided or double sided, full-page or half-page bound
][1] - accessible rendition available for use with screen readers
[1] - free preview download includes full text of first three chapters and two useful annexes
[1] - site-wide and world-wide staff licenses (one-time fee) are available
]
See [http://www.CraneSoftwrights.com/links/trn-20080127.htm] for more details.
Feedback
[[1] - the unorthodox style has been well-accepted by customers as an efficient learning presentation
[1] - feedback from customers is important to improve or repair the content for future editions
[1] - please send suggestions or comments (positive or negative) to [info@CraneSoftwrights.com [mailto:info@CraneSoftwrights.com]]
]
US Government employee purchase
[[1] - US Government employees (not contractors) are entitled to obtain their personal prepaid copies at no charge from a government intranet location
[1] - visit the Crane web site for details
]
*** This is a free preview excerpt of a commercial publication. ***
This is an accessible version of Crane's commercial training material.
The content has been specifically designed to assist screen reader software
in viewing the entire textual content. Figures are replaced with text
narratives.
Navigation hints are in square brackets:
[Tx.x] and [Fx.x] are textual representations of the applicability icons;
[digit] indicates list depth for nested lists;
[link [URL]] indicates the URL of a hyperlink if different than link;
[EXAMPLE] indicates an example listing of code;
[FIGURE] indicates the presence of a figure replaced by its description;
[>] jumps forward;
[<] jumps backward;
[^] jumps to start of the section;
[^^] jumps to the start of the chapter;
[^^^] jumps to the table of contents.
Suggestions for improvement are welcome:
[info@CraneSoftwrights.com]
Book sales: [http://www.CraneSoftwrights.com/links/trn-acc.htm]
Information: [http://www.CraneSoftwrights.com/links/info-acc.htm]
This content is protected by copyright and, as there are no means to protect
this accessible version from plagiarism, please do not make any
commercial edition available to others.
+//ISBN 978-1-894049::CSL::Courses::PFUX//DOCUMENT Practical Formatting Using XSL-FO 2008-01-27 17:30UTC//EN
Practical Formatting Using XSL-FO
Seventh Edition - 2008-01-27
ISBN 978-1-894049-19-1
Copyright © Crane Softwrights Ltd.