xsl:package

Defines a set of stylesheet modules that can be separately compiled.

Content: ( ( xsl:expose | declarations )* )
Permitted parent elements: None

Attributes

id?

id

name?

uri

The name of the package, as an absolute URI, to be used by xsl:use-package declarations.

package-version?

string

Version identifier, used to distinguish between different versions of a package.

version

decimal

Indicates the version of XSLT to which the package manifest conforms.

input-type-annotations?

"preserve" | "strip" | "unspecified"

Used to request stripping of type annotations. The default is unspecified.

declared-modes?

boolean

Determines whether of not modes that are referenced within the package must be explicitly declared. The default is yes.

default-mode?

eqname | "#unnamed"

default-validation?

"preserve" | "strip"

default-collation?

uris

extension-element-prefixes?

prefixes

exclude-result-prefixes?

prefixes

expand-text?

boolean

use-when?

expression

xpath-default-namespace?

uri

Notes on the Saxon implementation

Packages are new in XSLT 3.0, and first fully implemented in Saxon 9.7.

Links to W3C specifications

XSLT 3.0 Specification

See also

xsl:expose

xsl:use-package