The MathML Handbook

Chapter 8: Applying Styles and Transformations

This chapter provides an overview of CSS and XSLT, two stylesheet languages of special importance for MathML. It summarizes the basic principles and syntax of both stylesheet languages and gives examples of their applications to MathML documents.

8.1 Introduction

When you are posting an HTML (or XHTML) document that contains MathML on a Web site, it is important to have a way of controlling the exact style in which the document will be displayed. The style of the document includes information about properties such as font size, style, color, page margins, alignment, and so on. For displaying mathematics, there are also additional style considerations, such as the size of subscripts and superscripts relative to the base or whether fractions, integrals, and sums should be shown in display or inline form.

You can use the tags and attributes provided in MathML presentation markup to specify the precise rendering for any mathematical formula in a document. However, instead of specifying styles locally for each individual expression, you can collect style information that applies to the entire document in a separate stylesheet, which is rather convenient. The stylesheet can then be stored in a central location where multiple documents on a Web site can reference it. This makes it possible to assign a consistent appearance to a related set of documents. Also, by editing the stylesheet, you can apply style changes to an entire collection of documents without having to edit each document individually.

For HTML and XML documents, two stylesheet languages...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Language Translation Services
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.