Chapter 11. Supplemental objects

This chapter addresses the final few formatting objects not yet discussed. These objects are not used by many stylesheet writers, but are critically important to those who do need them. The functionality is focused in two particular areas: character-level processing and constructs of a global nature.

  • Character-level processing outside of the default behaviors includes

    • managing the bidirectionality inherent in the Unicode properties of characters ,

    • instantiating formatting objects explicitly in the formatting object tree.

  • Constructs of a global nature include

    • specifying a color system recognized by an XSL-FO processor,

    • accommodating a home in the XSL-FO instance for color system specifications.

One of the most powerful features of XSL-FO processors is that they are obliged to respect the inherent direction property of every Unicode character as defined by the Unicode standard. This relieves the stylesheet writer from the responsibility of detecting and acting on the characters in a bidirectional flow where right-to-left characters are intermixed with left-to-right characters. The author of the XML document being transformed into XSL-FO is responsible for the text characters being rendered and will use a mixture of directional character paths as required by their needs. The XSL-FO stylesheet writer can rest assured the inherent properties will be respected by a conformant processor. However, should the stylesheet want to present characters in an alternative character path , overriding the bidirectionality inherent in the characters themselves , a formatting object is needed to instruct the processor to act accordingly .

The abstraction of the character formatting object in the formatting object tree, instantiated by text in the XSL-FO instance, is available as a stand-alone object if explicitly specified using the vocabulary. This allows the stylesheet writer to override character-level properties on a per-character basis without relying on inheritance by using wrappers or other inline constructs.

Color is critically important to many compositors . Although XSL-FO supports RGB color values as used in HTML and CSS, many other color systems are available in printing software and hardware. To take advantage of other color systems, one can indicate the system in the stylesheet and then access it from other constructs. This brings up the need for information of a global nature that must reside outside of the information being flowed on the canvas.

Included in this chapter. This chapter includes discussion of the following XSL-FO objects:

  • bidi-override ( 6.6.2 ):

    • specifies how to manage and override the inherent Unicode text direction for a sequence of characters,

  • character ( 6.6.3 ):

    • represents both the abstract formatting object implied by a single character in an XSL-FO instance and the concrete formatting object available to be used in place of a simple character,

  • color-profile ( 6.4.4 ):

    • is the declaration of a profile of candidate color values from which color specifications can be made by formatting objects,

  • declarations ( 6.4.3 ):

    • is a global-scope repository of formatting object constructs for an XSL-FO instance, containing

      • the collection of available color profiles,

      • any collections of extended formatting objects supported by an XSL-FO processor.

        • The extended formatting objects must use a processor-recognized namespace URI other than the XSL-FO namespace URI.

Definitive XSL-FO
Definitive XSL-FO
ISBN: 0131403745
EAN: 2147483647
Year: 2002
Pages: 99
Authors: G. Ken Holman

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: