Skip to content

xsl:use-package

Used to allow components of one package to be referenced within another.

Available in XSLT 3.0. From Saxon 9.8, available in all editions. Implemented in Saxon-PE and Saxon-EE since Saxon 9.7.

Attributes

name
uri
The name of the package to be used, as an absolute URI.
package-version?
string
The version of the named package to be used. The default is *, which matches any version.

Notes on the Saxon implementation

New in XSLT 3.0, and first fully implemented in Saxon 9.7.

The rules for matching of package version numbers are more completely implemented in Saxon 9.8. If the configuration file defines multiple versions of the same package, the first one that satisfied the required version specified in the xsl:use-package declaration is chosen.

In Saxon-HE, the requested package must already exist in compiled form in memory. With Saxon-PE and Saxon-EE it can be loaded from a SEF file in filestore (or accessible from the web via a URI).

See also

Comments