Name
<xsl:stylesheet>
Synopsis
<xsl:stylesheet version = "number" xmlns:xsl="http://www.w3.org/1999/XSL/Transform” [id = "id“] [extension-element-prefixes = "prefix1 prefix2..."] [exclude-result-prefixes = "prefixa prefixb..."]> ... </xsl:stylesheet>
The xsl:stylesheet element is
the root element for XSLT stylesheets. The contents of this
element must first contain any xsl:import
elements, followed by any other top-level elements in any
order. xsl:stylesheet uses the following attributes:
-
version The version number of XSLT used by the stylesheet.
-
xmlns:xsl This attribute contains a standard namespace declaration that maps the prefix
xslto the namespace URI http://www.w3.org/1999/XSL/Transform. The prefix can be changed if necessary. This attribute is technically optional, but de facto required.-
id Any XML name that’s unique within the stylesheet and is of type
ID.-
extension-element-prefixes A whitespace-separated list of namespace prefixes used by extension elements in this document.
-
exclude-result-prefixes A whitespace-separated list of namespace prefixes whose declarations should not be copied into the output document. If a namespace is needed in the output, it will be copied regardless.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access