XML Schema "schema-for-xslt20.xsd"
Target Namespace:
http://www.w3.org/1999/XSL/Transform
Defined Components:
elements (52 global), complexTypes (6), simpleTypes (22), element groups (2), attribute groups (1)
Default Namespace-Qualified Form:
Local Elements: qualified; Local Attributes: unqualified
Schema Location:
http://www.w3.org/2007/schema-for-xslt20.xsd; see XML source
Imports Schemas (2):
xml.xsd [src], XMLSchema.xsd [src]
Annotation
Annotation 1 [src]:
This is a schema for XSLT 2.0 stylesheets.

It defines all the elements that appear in the XSLT namespace; it also
provides hooks that allow the inclusion of user-defined literal result elements,
extension instructions, and top-level data elements.

The schema is derived (with kind permission) from a schema for XSLT 1.0 stylesheets
produced by Asir S Vedamuthu of WebMethods Inc.

This schema is available for use under the conditions of the W3C Software License
published at http://www.w3.org/Consortium/Legal/copyright-software-19980720

The schema is organized as follows:

PART A: definitions of complex types and model groups used as the basis
for element definitions
PART B: definitions of individual XSLT elements
PART C: definitions for literal result elements
PART D: definitions of simple types used in attribute definitions

This schema does not attempt to define all the constraints that apply to a valid
XSLT 2.0 stylesheet module. It is the intention that all valid stylesheet modules
should conform to this schema; however, the schema is non-normative and in the event
of any conflict, the text of the Recommendation takes precedence.

This schema does not implement the special rules that apply when a stylesheet
has sections that use forwards-compatible-mode. In this mode, setting version="3.0"
allows elements from the XSLT namespace to be used that are not defined in XSLT 2.0.

Simplified stylesheets (those with a literal result element as the outermost element)
will validate against this schema only if validation starts in lax mode.

This version is dated 2007-03-16
Authors: Michael H Kay, Saxonica Limited
Jeni Tennison, Jeni Tennison Consulting Ltd.

2007-03-15: added xsl:document element
revised xsl:sequence element
see http://www.w3.org/Bugs/Public/show_bug.cgi?id=4237
Annotation 2 [src]:
PART A: definitions of complex types and model groups used as the basis
for element definitions
Annotation 3 [src]:
PART B: definitions of individual XSLT elements
Elements are listed in alphabetical order.
Annotation 4 [src]:
PART C: definition of literal result elements

There are three ways to define the literal result elements
permissible in a stylesheet.

(a) do nothing. This allows any element to be used as a literal
result element, provided it is not in the XSLT namespace

(b) declare all permitted literal result elements as members
of the xsl:literal-result-element substitution group

(c) redefine the model group xsl:result-elements to accommodate
all permitted literal result elements.

Literal result elements are allowed to take certain attributes
in the XSLT namespace. These are defined in the attribute group
literal-result-element-attributes, which can be included in the
definition of any literal result element.
Annotation 5 [src]:
PART D: definitions of simple types used in stylesheet attributes
All Element Summary
xsl:analyze-string
Type:
Content:
complex, 9 attributes, attr. wildcard, 3 elements
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 3 attributes, 3 elements
Used:
never
xsl:apply-imports
Type:
Content:
complex, 6 attributes, attr. wildcard, 1 element
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definition of 1 element
Used:
never
xsl:apply-templates
Type:
Content:
complex, 8 attributes, attr. wildcard, 2 elements
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 2 attributes, 2 elements
Used:
never
xsl:attribute
Type:
anonymous complexType (extension of xsl:sequence-constructor)
Content:
mixed (allows character data), 12 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 6 attributes
Used:
xsl:attribute-set
Type:
Content:
complex, 8 attributes, attr. wildcard, 1 element
Subst.Gr:
may substitute for element xsl:declaration
Defined:
globally; see XML source
Includes:
definitions of 2 attributes, 1 element
Used:
never
xsl:call-template
Type:
Content:
complex, 7 attributes, attr. wildcard, 1 element
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 1 attribute, 1 element
Used:
never
xsl:character-map
Type:
Content:
complex, 8 attributes, attr. wildcard, 1 element
Subst.Gr:
may substitute for element xsl:declaration
Defined:
globally; see XML source
Includes:
definitions of 2 attributes, 1 element
Used:
never
xsl:choose
Type:
Content:
complex, 6 attributes, attr. wildcard, 2 elements
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 2 elements
Used:
never
xsl:comment
Type:
anonymous complexType (extension of xsl:sequence-constructor)
Content:
mixed (allows character data), 7 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definition of 1 attribute
Used:
never
xsl:copy
Type:
anonymous complexType (extension of xsl:sequence-constructor)
Content:
mixed (allows character data), 11 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 5 attributes
Used:
never
xsl:copy-of
Type:
anonymous complexType (extension of xsl:versioned-element-type)
Content:
mixed (allows character data), 10 attributes, attr. wildcard
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 4 attributes
Used:
never
xsl:decimal-format
Type:
Content:
empty, 17 attributes, attr. wildcard
Subst.Gr:
may substitute for element xsl:declaration
Defined:
globally; see XML source
Includes:
definitions of 11 attributes
Used:
never
xsl:declaration
Type:
Content:
mixed (allows character data), 5 attributes, attr. wildcard
Abstract:
(may not be used directly in instance XML documents)
Subst.Gr:
may be substituted with 12 elements
Defined:
globally; see XML source
Used:
at 13 locations
xsl:document
Type:
anonymous complexType (extension of xsl:sequence-constructor)
Content:
mixed (allows character data), 8 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 2 attributes
Used:
never
xsl:element
Type:
anonymous complexType (extension of xsl:sequence-constructor)
Content:
mixed (allows character data), 12 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 6 attributes
Used:
never
xsl:fallback
Type:
Content:
mixed (allows character data), 6 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Used:
xsl:for-each
Type:
anonymous complexType (extension of xsl:versioned-element-type)
Content:
mixed (allows character data), 7 attributes, attr. wildcard, 4 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 1 attribute, 1 element
Used:
never
xsl:for-each-group
Type:
anonymous complexType (extension of xsl:versioned-element-type)
Content:
mixed (allows character data), 12 attributes, attr. wildcard, 4 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 6 attributes, 1 element
Used:
never
xsl:function
Type:
anonymous complexType (extension of xsl:versioned-element-type)
Content:
mixed (allows character data), 9 attributes, attr. wildcard, 4 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:declaration
Defined:
globally; see XML source
Includes:
definitions of 3 attributes, 1 element
Used:
never
xsl:if
Type:
anonymous complexType (extension of xsl:sequence-constructor)
Content:
mixed (allows character data), 7 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definition of 1 attribute
Used:
never
xsl:import
Type:
Content:
empty, 7 attributes, attr. wildcard
Defined:
globally; see XML source
Includes:
definition of 1 attribute
Used:
xsl:import-schema
Type:
Content:
complex, 8 attributes, attr. wildcard, 1 element
Subst.Gr:
may substitute for element xsl:declaration
Defined:
globally; see XML source
Includes:
definitions of 2 attributes, 1 element
Used:
never
xsl:include
Type:
Content:
empty, 7 attributes, attr. wildcard
Subst.Gr:
may substitute for element xsl:declaration
Defined:
globally; see XML source
Includes:
definition of 1 attribute
Used:
never
xsl:instruction
Type:
Content:
mixed (allows character data), 6 attributes, attr. wildcard
Abstract:
(may not be used directly in instance XML documents)
Subst.Gr:
may be substituted with 25 elements
Defined:
globally; see XML source
Used:
at 26 locations
xsl:key
Type:
anonymous complexType (extension of xsl:sequence-constructor)
Content:
mixed (allows character data), 10 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:declaration
Defined:
globally; see XML source
Includes:
definitions of 4 attributes
Used:
never
xsl:literal-result-element
Type:
Content:
mixed (allows character data), attr. wildcard, elem. wildcard
Abstract:
(may not be used directly in instance XML documents)
Defined:
globally; see XML source
Used:
xsl:matching-substring
Type:
Content:
mixed (allows character data), 6 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Defined:
globally; see XML source
Used:
xsl:message
Type:
anonymous complexType (extension of xsl:sequence-constructor)
Content:
mixed (allows character data), 8 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 2 attributes
Used:
never
xsl:namespace
Type:
anonymous complexType (extension of xsl:sequence-constructor)
Content:
mixed (allows character data), 8 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 2 attributes
Used:
never
xsl:namespace-alias
Type:
Content:
empty, 8 attributes, attr. wildcard
Subst.Gr:
may substitute for element xsl:declaration
Defined:
globally; see XML source
Includes:
definitions of 2 attributes
Used:
never
xsl:next-match
Type:
Content:
complex, 6 attributes, attr. wildcard, 2 elements
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 2 elements
Used:
never
xsl:non-matching-substring
Type:
Content:
mixed (allows character data), 6 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Defined:
globally; see XML source
Used:
xsl:number
Type:
anonymous complexType (extension of xsl:versioned-element-type)
Content:
mixed (allows character data), 17 attributes, attr. wildcard
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 11 attributes
Used:
never
xsl:otherwise
Type:
Content:
mixed (allows character data), 6 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Defined:
globally; see XML source
Used:
xsl:output
Type:
anonymous complexType (extension of xsl:generic-element-type)
Content:
mixed (allows character data), 22 attributes, attr. wildcard
Subst.Gr:
may substitute for element xsl:declaration
Defined:
globally; see XML source
Includes:
definitions of 17 attributes
Used:
never
xsl:output-character
Type:
Content:
empty, 8 attributes, attr. wildcard
Defined:
globally; see XML source
Includes:
definitions of 2 attributes
Used:
xsl:param
Type:
anonymous complexType (extension of xsl:sequence-constructor)
Content:
mixed (allows character data), 11 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Defined:
globally; see XML source
Includes:
definitions of 5 attributes
Used:
xsl:perform-sort
Type:
anonymous complexType (extension of xsl:versioned-element-type)
Content:
mixed (allows character data), 7 attributes, attr. wildcard, 4 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 1 attribute, 1 element
Used:
never
xsl:preserve-space
Type:
Content:
empty, 7 attributes, attr. wildcard
Subst.Gr:
may substitute for element xsl:declaration
Defined:
globally; see XML source
Includes:
definition of 1 attribute
Used:
never
xsl:processing-instruction
Type:
anonymous complexType (extension of xsl:sequence-constructor)
Content:
mixed (allows character data), 8 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 2 attributes
Used:
never
xsl:result-document
Type:
anonymous complexType (extension of xsl:sequence-constructor)
Content:
mixed (allows character data), 26 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 20 attributes
Used:
never
xsl:sequence
Type:
Content:
mixed (allows character data), 7 attributes, attr. wildcard, 1 element
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 1 attribute, 1 element
Used:
never
xsl:sort
Type:
anonymous complexType (extension of xsl:sequence-constructor)
Content:
mixed (allows character data), 13 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Defined:
globally; see XML source
Includes:
definitions of 7 attributes
Used:
xsl:strip-space
Type:
Content:
empty, 7 attributes, attr. wildcard
Subst.Gr:
may substitute for element xsl:declaration
Defined:
globally; see XML source
Includes:
definition of 1 attribute
Used:
never
xsl:stylesheet
Type:
anonymous complexType (extension of xsl:transform-element-base-type), inherited from xsl:transform
Content:
complex, 9 attributes, attr. wildcard, 4 elements, elem. wildcard
Subst.Gr:
may substitute for element xsl:transform
Defined:
globally; see XML source
Used:
never
xsl:template
Type:
anonymous complexType (extension of xsl:versioned-element-type)
Content:
mixed (allows character data), 11 attributes, attr. wildcard, 4 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:declaration
Defined:
globally; see XML source
Includes:
definitions of 5 attributes, 1 element
Used:
never
xsl:text
Type:
anonymous complexType (extension of xsl:text-element-base-type)
Content:
simple, 7 attributes, attr. wildcard
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definition of 1 attribute
Used:
never
xsl:transform
Type:
anonymous complexType (extension of xsl:transform-element-base-type)
Content:
complex, 9 attributes, attr. wildcard, 4 elements, elem. wildcard
Subst.Gr:
may be substituted with 1 element
Defined:
globally; see XML source
Includes:
definitions of 3 attributes, 4 elements, elem. wildcard
Used:
xsl:value-of
Type:
anonymous complexType (extension of xsl:sequence-constructor)
Content:
mixed (allows character data), 9 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Subst.Gr:
may substitute for element xsl:instruction
Defined:
globally; see XML source
Includes:
definitions of 3 attributes
Used:
never
xsl:variable
Type:
anonymous complexType (extension of xsl:sequence-constructor)
Content:
mixed (allows character data), 9 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Defined:
globally; see XML source
Includes:
definitions of 3 attributes
Used:
xsl:when
Type:
anonymous complexType (extension of xsl:sequence-constructor)
Content:
mixed (allows character data), 7 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Defined:
globally; see XML source
Includes:
definition of 1 attribute
Used:
xsl:with-param
Type:
anonymous complexType (extension of xsl:sequence-constructor)
Content:
mixed (allows character data), 10 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Defined:
globally; see XML source
Includes:
definitions of 4 attributes
Used:
Complex Type Summary
Content:
empty, 6 attributes, attr. wildcard
Defined:
globally; see XML source
Includes:
definition of attr. wildcard
Used:
at 18 locations
Content:
mixed (allows character data), 5 attributes, attr. wildcard
Defined:
globally; see XML source
Includes:
definitions of 5 attributes, attr. wildcard
Used:
Content:
mixed (allows character data), 6 attributes, attr. wildcard, 3 elements, 2 elem. wildcards
Defined:
globally; see XML source
Used:
at 21 locations
Content:
simple, 6 attributes, attr. wildcard
Defined:
globally; see XML source
Includes:
definition of attr. wildcard
Used:
Content:
empty, 6 attributes, attr. wildcard
Defined:
globally; see XML source
Includes:
definitions of 1 attribute, attr. wildcard
Used:
Content:
mixed (allows character data), 6 attributes, attr. wildcard
Defined:
globally; see XML source
Includes:
definition of 1 attribute
Used:
at 11 locations
Simple Type Summary
This type is used for all attributes that allow an attribute value template.
Defined:
globally; see XML source
Used:
at 39 locations
A string containing exactly one character.
Defined:
globally; see XML source
Used:
An XPath 2.0 expression.
Defined:
globally; see XML source
Used:
at 27 locations
Describes how type annotations in source documents are handled.
Defined:
globally; see XML source
Used:
The level attribute of xsl:number: one of single, multiple, or any.
Defined:
globally; see XML source
Used:
The method attribute of xsl:output: Either one of the recognized names "xml", "xhtml", "html", "text", or a QName that must include a prefix.
Defined:
globally; see XML source
Used:
The mode attribute of xsl:apply-templates: either a QName, or #current, or #default.
Defined:
globally; see XML source
Used:
The mode attribute of xsl:template: either a list, each member being either a QName or #default; or the value #all
Defined:
globally; see XML source
Used:
A list of NameTests, as defined in the XPath 2.0 Recommendation.
Defined:
globally; see XML source
Used:
A match pattern as defined in the XSLT 2.0 Recommendation.
Defined:
globally; see XML source
Used:
Defined:
globally; see XML source
Used:
Defined:
globally; see XML source
Used:
Either a namespace prefix, or #default.
Defined:
globally; see XML source
Used:
Defined:
globally; see XML source
Used:
A QName.
Defined:
globally; see XML source
Used:
at 23 locations
A list of QNames.
Defined:
globally; see XML source
Used:
The description of a data type, conforming to the SequenceType production defined in the XPath 2.0 Recommendation
Defined:
globally; see XML source
Used:
Defined:
globally; see XML source
Used:
Describes different ways of type-annotating an element or attribute.
Defined:
globally; see XML source
Used:
Describes different ways of type-annotating an element or attribute.
Defined:
globally; see XML source
Used:
One of the values "yes" or "no".
Defined:
globally; see XML source
Used:
at 18 locations
One of the values "yes" or "no" or "omit".
Defined:
globally; see XML source
Used:
Element Group Summary
Content:
element, 2 elem. wildcards
Defined:
globally; see XML source
Includes:
definitions of 1 element, 2 elem. wildcards
Used:
Content:
elements, 2 elem. wildcards
Defined:
globally; see XML source
Includes:
definitions of 2 elements
Used:
Attribute Group Summary
Content:
Defined:
globally; see XML source
Includes:
definitions of 10 attributes
Used:
never

XML schema documentation generated with DocFlex/XML RE 1.9.0 using DocFlex/XML XSDDoc 2.8.0 template set. All content model diagrams generated by Altova XMLSpy via DocFlex/XML XMLSpy Integration.