Lists

Another common formatting technique involves lists. A number of objects are used explicitly for the creation and formatting of lists. These include

  • list-block— This object contains the data and describes the formatting for a list of items.

  • list-item— This contains an individual list item which consist of a list-item-label object and list-item-body object.

  • list-item-label— This contains the label block (such as an individual character or graphics) for an individual list item.

  • list-item-body— This contains the block of data for an individual list item.

Now let’s look at how these objects work together to create a list. This list will contain a list of customers for an imaginary company. You start out with the list-block object, which contains ...

Get Special Edition Using XSLT 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.