XSL FO Features Test |
||||
Tests in this set show the use of various XSL FO (XSLFO) objects and properties. These tests may be useful for understanding basics of XSL FO (XSLFO) and assessing XSL FO (XSLFO) formatter conformance. All examples have common XML markup, translated into XSL FO (XSLFO) via a dedicated XSLT stylesheet macro.xsl. Images referenced from these tests are available for download. |
||||
Character Sets - Adobe Standard |
||||
Enumerates the glyph repertory of standard PDF Latin fonts (Adobe Extended Roman character set) and lists Unicode values for glyphs therein. Source XML: adobe-standard.xml |
||||
Text Block Attributes - Alignment |
||||
Tests XSL FO (XSLFO) attributes dealing with horizontal text alignment: text-align, text-indent, text-align-last. Source XML: align.xml |
||||
Extended Font Attributes - Font Aspect and X-Height Adjustment |
||||
Demonstrates aspect-preserving font size adjustment. Source XML: aspect.xml |
||||
Vertical Alignment Properties - Baseline Shift |
||||
Shows how to alter vertical position of inline elements: subscripts/superscripts. Source XML: baseline-shift.xml |
||||
Block Properties - Background Images (rx-extensions) |
||||
Tests RenderX extensions to control background image sizing and scaling. The following attributes are involved: rx:background-content-height, rx:background-content-width, rx:background-scaling. Source XML: bgimage-sized.xml |
||||
Block Properties - Background Images |
||||
Tests background image placement and tiling. Source XML: bgimage.xml |
||||
Basic Font Attributes - Font Weight |
||||
Tests different font weights. Source XML: bold.xml |
||||
Block Properties - Borders |
||||
Shows border attributes: colors, widths and styles. Source XML: borders.xml |
||||
Basic Formatting Attributes - Color |
||||
Tests RGB color treatment and predefined color keywords in various contexts - text, background, and borders. Source XML: color.xml |
||||
Columns |
||||
Tests multi-column pages and reference-orientation on page regions. Source XML: columns.xml |
||||
Block-containers |
||||
Tests absolute and relative placement, borders, and reference orientation on <fo:block-container> elements. Source XML: containers.xml |
||||
Basic Font Attributes - Font Decoration |
||||
Demonstrates text decoration attributes - underline, overline, and strikethrough. Source XML: decoration.xml |
||||
Basic Font Attributes - Font Family |
||||
Tests standard PDF fonts (Helvetica, Times, Courier, Symbol, Zapf Dingbats), extra (embedded) fonts, and generic font families. Also demonstrates usage of multiple fonts in font-family. Source XML: family.xml |
||||
Text Block Attributes - First Line Formatting |
||||
Tests first-line formatting - <fo:initial-property-set> element. Source XML: firstline.xml |
||||
Footnotes |
||||
Tests processing of footnotes in multi-column layouts. Source XML: footnotes.xml |
||||
Conditional Page Master |
||||
Demonstrates usage of force-page-count attribute to pad the length of page sequences. Also tests conditional page master references for blank pages. Source XML: force-page-count.xml |
||||
Side Regions - Borders, Background, Reference Orientation |
||||
Tests borders and backgrounds on side regions, with special emphasis on reference orientation. Source XML: headers.xml |
||||
Graphics - Inline Images |
||||
Tests scaling and vertical positioning on inline images. Source XML: images-inline.xml |
||||
Text Block Attributes - Indents |
||||
Tests various indentation attributes: start-indent, end-indent, text-indent, and last-line-end-indent. Source XML: indent.xml |
||||
Inlines - Borders, Padding and Background |
||||
Tests borders and background on <fo:inline> element, including conditional borders/padding. Source XML: inline-borders.xml |
||||
Basic Font Attributes - Font Style |
||||
Tests slant variations of fonts: italic, oblique, backslant. Source XML: italic.xml |
||||
Rules & Leaders |
||||
Tests several types of <fo:leader> elements: space-filled, dot-filled, rule-filled, patterned. Source XML: leader.xml |
||||
Advanced Inline Attributes - Line Break Control |
||||
Tests control over line splitting. Source XML: linebreak.xml |
||||
Text Block Attributes - Line Height |
||||
Tests line-height attribute. Source XML: lineheight.xml |
||||
Lists and Bullets |
||||
Tests XSL FO (XSLFO) elements to build various lists. Source XML: lists.xml |
||||
Markers |
||||
Tests running headers/footers functionality, implemented through <fo:marker>/<fo:retrieve-marker> elements. Source XML: marker.xml |
||||
Repeatable Page Master |
||||
Shows the effects of maximum-repeats attribute on <fo:repeatable-page-master-reference> and <fo:repeatable-page-master-alternatives> elements. Source XML: maximum-repeats.xml |
||||
Block Properties - Padding |
||||
Explores padding attributes on blocks. Both split-up and shorthand padding specifiers are tested. Source XML: padding.xml |
||||
Advanced Paragraph Attributes - Page Break Control |
||||
Tests page break control via keep-together attribute. Source XML: pagebreak.xml |
||||
Static Content |
||||
Tests named regions functionality and fo:static-content elements. Source XML: pagemaster.xml |
||||
Conditional Page Master |
||||
Tests processing of complex page sequence masters. Source XML: pagesequence.xml |
||||
Shorthand Notation Attributes - Font |
||||
Tests parsing of font shorthand attribute. Source XML: sh-font.xml |
||||
Basic Font Attributes - Font Shadow |
||||
Tests font shadow effects. Source XML: shadow.xml |
||||
Side-floats Test |
||||
Tests side-floats and their interaction with emphasis on clear and intrusion-displace properties. Source XML: side-floats.xml |
||||
Basic Font Attributes - Font Size |
||||
Tests different ways to specify font size. Source XML: size.xml |
||||
Basic Font Attributes - Smallcaps |
||||
Tests smallcaps variant for fonts. Source XML: smallcaps.xml |
||||
Common Margin Properties - Block |
||||
Tests block margin properties - space-before and space-after. Source XML: space-before.xml |
||||
Text Attributes - Character and Word Spacing |
||||
Tests inter-word and inter-character spacing - letter-spacing and word-spacing attributes. Source XML: spacing.xml |
||||
Text Block Attributes - Line Stacking Strategy |
||||
Tests different line stacking strategies. Source XML: stacking.xml |
||||
Basic Font Attributes - Font Stretch |
||||
Tests horizontal scaling of text via font-stretch attribute. Source XML: stretch.xml |
||||
Character Sets - Symbol |
||||
Enumerates the glyph repertory of Adobe Symbol font and lists Unicode values for glyphs therein. Source XML: symbol.xml |
||||
Column Specifiers in Tables |
||||
Contains examples of <fo:table-column> usage. Source XML: table_columns.xml |
||||
Tables with Headers/Footers/Multiple Bodies |
||||
Tests row group elements for tables: fo:table-header, fo:table-footer, and two fo:table-body. Source XML: table_headers.xml |
||||
Basic Tables |
||||
Tests basic table functionality. Source XML: table_plain.xml |
||||
Tables with Cells Spanning Multiple Rows/Columns |
||||
Tests complex table layouts with cells spanning multiple columns and/or rows. Source XML: table_spans.xml |
||||
Text Transformations - Uppercase, Lowercase, Capitalized |
||||
Shows text case transformations. Source XML: transform.xml |
||||
Character Sets - Zapf Dingbats |
||||
Enumerates the glyph repertory of Zapf Dingbats font and lists Unicode values for glyphs therein. Source XML: zapf-dingbats.xml |