In Practice

Structured Documentation

Conversion of XML to HTML with XSLT usually falls into two different types of application. In one, the input is document-like, with lots of mixed content and style elements that can contain other style elements. This is best processed with XSLT based around many templates, because the processing is inherently recursive.

The XSLT must do little more than convert directly to equivalent HTML elements. The designers should write a CSS to customize the presentation of the resulting HTML; the XSLT should avoid style decisions if possible, because it is not a very friendly format for HTML designers to interact with.

Beyond simple element mapping, the XSLT also will be involved in the preparation of in-document ...

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.