xsl:package
Used as the root element of a stylesheet, as an alternative to xsl:stylesheet or xsl:transform.
<xsl:package xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="3.0" name="http://example.com/my-package">
...
</xsl:package>xsl:package is the XSLT 3.0 root element for a package — a unit of compilation that can declare its public surface and be combined with other packages. goxslt accepts xsl:package as a root element but does not yet implement the full package model: xsl:use-package, xsl:accept, xsl:expose, and visibility restrictions are not supported.
Attributes
| Attribute | Description |
|---|---|
name |
Package name as a URI. |
package-version |
Package version string. |
version |
XSLT version (e.g. 3.0). |
id |
XML id. |
(Plus the same defaulting attributes that xsl:stylesheet accepts: default-mode, default-collation, expand-text, exclude-result-prefixes, etc.)