Stylesheet features

Typically, stylesheets attempt to accomplish a number of tasks, including styling the text, adding template text, reordering and moving content, and styling text differently depending on the current context.

Style

The one thing that all stylesheets should be able to achieve is to apply stylistic information to the text of a document. This includes the shape of the characters (the font used), the size of the characters (the point size), style variants (including bold, italic and small caps), underlining and the use of colour.

In addition, they should be able to distinguish between in-line styles and block styles. An in-line object does not break the flow of words (the bold words in this paragraph are in-line styles). But when ...

Get XML Companion, The, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.