Styles and scripts

The Style element encloses stylesheet instructions. The Type attribute is required, and identifies the stylesheet language, such as 'text/css' or 'text/xsl'. The Media attribute identifies the type of media the stylesheet is aimed at, such as 'screen' (the default) or 'paper'. A Title attribute is also allowed to identify the stylesheet.

<STYLE TYPE="text/css" MEDIA="screen">
  p { color: green }
</STYLE>

A number of attributes have been added to the Script element, which is used to enclose script programs. The Type attribute describes the scripting language used, such as 'text/javascript'. The Src attribute identifies a remote file containing the scripts, using a URL. When Src is used, the Charset attribute may also be used ...

Get XSL companion, The 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.