XSLT <xsl:stylesheet> and <xsl:transform> elemens
May 28, 2021
XSL T
Table of contents
XSLT
and lt;xsl: stylesheets and
elements of the
.lt;xsl:transform>
In XSLT, the two elements have the same meaning, and this section describes their properties and usage.
Complete XSLT element reference manual
Definitions and usages
The elements are completely synonymable.
are used to define the root element of the style sheet.
Grammar
<xsl:stylesheet
id="name"
version="version"
extension-element-prefixes="list"
exclude-result-prefixes="list">
<!-- Content:(<xsl:import>*,top-level-elements) -->
</xsl:stylesheet>
<xsl:transform
id="name"
version="version"
extension-element-prefixes="list"
exclude-result-prefixes="list">
<!-- Content:(<xsl:import>*,top-level-elements) -->
</xsl:transform>
Property
Attributes
|
value
|
describe
|
version
|
version
|
Required.The XSLT version of the style sheet is specified.
|
extension-element-prefixes
|
list
|
Optional.The namespace prefix list of extended elements is separated by spaces.
Netscape 6 does not support this property.
|
exclude-result-prefixes
|
list
|
Optional.The namespace prefix list should not appear in the output, separated by spaces.
|
id
|
name
|
Optional.Single ID of style sheet.
Netscape 6 does not support this property.
|
Instance 1
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
....
....
</xsl:stylesheet>
Instance 2
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:transform version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
....
....
</xsl:transform>
Complete XSLT element reference manual