Stylesheet contents

Elements that may be inserted directly into the Stylesheet element are known as 'top-level' elements. These elements may not be used anywhere else, and other XSLT elements may not be inserted at this location.

The Template, Import and Include elements have already been discussed. Other top-level elements are used to specify space preservation rules for output elements, specify the output format, and define linking schemes, the format of decimal numbers, sets of attributes for use in templates, variables and parameters:

 <stylesheet ...> <import...> <include...> <strip-space...> <preserve-space...> <output...> <key...> <decimal-format...> <attribute-set...> <variable...> <param...> <namespace-alias...> ... ... </stylesheet> ...

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.