Batch composition to HTML

When using an XML-sensitive browser to display an XML document, it is only necessary to create a suitable CSS stylesheet, and reference it from the document. But when using an HTML-sensitive browser to display an XML document, a software 'filter' is used to transform the document into HTML format.

When using a filter program (or XSLT stylesheet), HTML in-line styles become a practical, and sometimes preferred, option. A filter program does not object to repeatedly generating the same style rule, it simply adds the Style attribute directly to each element:

 <p style="font-size: 9pt ; color: blue">...</p> <p style="font-size: ...

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.