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.
- Category: declaration
- Content: (
- Permitted parent elements:
- The name of the package to be used, as an absolute URI.
- 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).