XSLT and Elements | Novice Tutorial
Novice Tutorial -- Learning Not Just Technology, But Dreams!
- Home
- HTML
- JavaScript
- CSS
- Vue
- React
- Python3
- Java
- C
- C++
- C#
- AI
- Go
- SQL
- Linux
- VS Code
- Bootstrap
- Git
- Local Bookmarks
XSLT Tutorial
XSLT TutorialXSL LanguageXSLT IntroductionXSLT BrowserXSLT Transformation<a href="#" title="XSLT Element">XSLT <a href="#" title="XSLT Element">XSLT <a href="#" title="XSLT Element">XSLT <a href="#" title="XSLT Element">XSLT <a href="#" title="XSLT Element">XSLT <a href="#" title="XSLT Element">XSLT <a href="#" title="XSLT Element">XSLT ApplyXSLT Client SideXSLT Server SideXSLT Edit XMLXML EditorXSLT SummaryXSLT ExamplesXSLT ElementsXSLT FunctionsXSLT Conversion Tool
Dive Deeper
Web Browser
Network
Programming
Web Design and Development
Scripting Languages
Programming Languages
Software
Web Services
Search
Computer Science
XSLT and Elements
Complete XSLT Elements Reference Manual
Definition and Usage
The and elements are completely synonymous elements. Both are used to define the root element of a stylesheet.
Syntax
<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>
Attributes
| Attribute | Value | Description |
|---|---|---|
| version | version | Required. Specifies the XSLT version of the stylesheet. |
| extension-element-prefixes | list | Optional. A space-separated list of namespace prefixes for extension elements. Netscape 6 does not support this attribute. |
| exclude-result-prefixes | list | Optional. A space-separated list of namespace prefixes that should not appear in the output. |
| id | name | Optional. A unique id for the stylesheet. Netscape 6 does not support this attribute. |
Example 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>
Example 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>
YouTip