xsl:package

Defines a set of stylesheet modules that can be separately compiled. Partial experimental implementation in Saxon 9.6.

Content: ( ( xsl:use-package | xsl:expose | xsl:global-context-item | xsl:stylesheet | xsl:transform )* )
Permitted parent elements: None

Attributes

name?

uri

package-version?

string

version

decimal

input-type-annotations?

"preserve" | "strip" | "unspecified"

declared-modes?

boolean

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. There is a partial implementation in Saxon 9.6, but it is incomplete and not fully tested. In addition, the specification is not considered fully stable. The feature should not be used, except for experimentation and learning purposes.

Links to W3C specifications

XSLT 3.0 Specification