XML specifics

Because HTML tags are hard-wired into HTML-sensitive Web browsers, some information does not need to be supplied by a stylesheet. For example, it is known that the Emphasis element is an in-line element, so no line breaks are to be generated around it. It is also known that the Ordered List element contains numbered list items, and that the Preformatted element dictates no formatting of the embedded text. An XML-sensitive formatter, however, requires explicit information to identify elements that perform these and other roles.

Block and in-line elements

When presenting information the formatting program must distinguish between two types of element content. Some elements contain text that forms just part of a larger block of text. ...

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.