Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XSLT and Element

XSLT xsl:stylesheet and xsl:transform Element


XSLT Element Reference Manual Complete XSLT Element Reference Manual


Definition and Usage

xsl:stylesheet and xsl:transform The elements are completely synonymous. Both are used to define the root element of a stylesheet.


Syntax

id="name"

version="version"

extension-element-prefixes="list"

exclude-result-prefixes="list">

id="name"

version="version"

extension-element-prefixes="list"

exclude-result-prefixes="list">

property

property 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. The unique id of the stylesheet.

Netscape 6 does not support this attribute.

Example 1

xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

....

....

Example 2

xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

....

....


XSLT Element Reference Manual Complete XSLT Element Reference Manual