Top-level elements

The Top Level entity defines the elements that can occur within the Stylesheet (or Transform) element. It forces all Import elements to appear first (if any occur at all), and then allows any mixture of other allowed elements:

<!ENTITY % top-level "
      (xsl:import*,
        (xsl:include | xsl:strip-space |
         xsl:preserve-space | xsl:output |
         xsl:key | xsl:decimal-format |
         xsl:attribute-set | xsl:variable |
         xsl:param | xsl:template |
         xsl:namespace-alias
         %non-xsl-top-level;)*) ">

Note that the Template and Variable elements shown in this list are described in the next section. The other elements are described below.

A mechanism for adding non-XSLT elements to this group is provided by the entity reference at the end. But the Non-XSL Top ...

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.