xsl:import-schema¶
Used to identify a schema containing definitions of types that are referred to in the stylesheet.
Available in XSLT 2.0 and later versions. Requires Saxon-EE.
- Category: declaration
- Content:
xs:schema? - Permitted parent elements:
xsl:package;xsl:stylesheet;xsl:transform
Attributes¶
namespace?- uri
- Specifies the target namespace of the schema to be imported. The attribute should be omitted when importing a schema with no target namespace.
schema-location?- uri
- Specifies where the schema document can be found. This URI is passed through the
URIResolverin the same way as the URIs used onxsl:includeandxsl:import. The attribute can be omitted only if a schema for the required namespace has already been loaded in theConfiguration, for example if it has already been imported from another stylesheet module.
Notes on the Saxon implementation¶
The xsl:import-schema declaration requires a schema-aware processor, so is only available in Saxon-EE. For further information see Schema Processing.