xsl:global-context-item

Used to declare whether a global context item is required, and if so, to declare its required type.

Category: declaration
Content: none
Permitted parent elements: xsl:package ; xsl:stylesheet ; xsl:transform

Attributes

as?

item-type

The required type of the global context item; the default is item().

use?

"required" | "optional" | "absent"

Specifies whether a stylesheet module requires a global context item; the default is optional.

Saxon availability

Available in XSLT 3.0 and later versions. From Saxon 9.8, available in all editions. Requires Saxon-PE or Saxon-EE. Implemented since Saxon 9.7. Available for all platforms.

Links to W3C specifications

XSLT 3.0 Specification

XSLT 4.0 Specification