Lists

Another common formatting technique involves lists. There are a number of objects that 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 that consists 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 see how these objects work together to create a list. This list will contain a list of customers for an imaginary company. We start with the list-block object, which contains ...

Get Special Edition Using XML, Second 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.