### Saxon.Api

- BinaryResource
- CatalogCollection
- DirectoryCollection
- DocumentBuilder
- DomDestination
- DynamicContext
- DynamicError
- EmptyEnumerator<T>
- ErrorReporter
- ErrorReporterToStaticError
- ErrorReporterWrapper
- ExtensionFunction
- ExtensionFunctionCall
- ExtensionFunctionDefinition
- Feature<T>
- FeatureKeys
- HostLanguage
- ICollectionFinder
- IErrorReporter
- IInvalidityHandler
- IMessageListener
- IMessageListener2
- InvalidityHandlerWrapper
- IPredicate<in XdmItem>
- IQueryResolver
- IResource
- IResourceCollection
- IResourceFactory
- IResultDocumentHandler
- IXmlLocation
- JarCollection
- NamespaceConstant
- NullDestination
- Predicate<T>
- Predicates
- Processor
- QName
- RawDestination
- RecoveryPolicy
- Resource
- ResourceCollection
- SchemaManager
- SchemaResolver
- SchemaValidationMode
- SchemaValidator
- Serializer
- StandardCollectionFinder
- StandardLogger
- StaticContext
- StaticError
- Step<TInput, TResult>
- Steps
- TextWriterDestination
- TreeModel
- URIQueryParameters
- ValidationFailure
- WhitespacePolicy
- XdmAnyArrayType
- XdmAnyFunctionType
- XdmAnyItemType
- XdmAnyMapType
- XdmAnyNodeType
- XdmArray
- XdmAtomicType
- XdmAtomicValue
- XdmAxis
- XdmDestination
  - - TreeProtector
- XdmEmptySequence
- XdmExternalObjectValue
- XdmFunctionItem
- XdmItem
- XdmItemType
- XdmMap
- XdmNode
- XdmNodeKind
- XdmSequenceType
- XdmValue
- XmlDestination
- XmlProcessingError
- XmlResource
- XPathCompiler
- XPathExecutable
- XPathSelector
- XQueryCompiler
- XQueryEvaluator
- XQueryExecutable
- Xslt30Transformer
- XsltCompiler
- XsltExecutable
  - - ParameterDetails
- XsltPackage
- XsltTransformer

### Saxon.Api

# Class XsltPackage

public class XsltPackage

An `XsltPackage` object represents the result of compiling an XSLT 3.0 package, as represented by an XML document containing an `xsl:package` element.

### Property Summary
string | PackageName Get the name of the package (the URI appearing as the value of `xsl:package/@name`)
Processor | Processor Get the Processor from which this `XsltPackage` was constructed
string | Version Get the version number of the package (the value of the attribute `xsl:package/@package-version`

### Method Summary
net.sf.saxon.style.StylesheetPackage | getUnderlyingPreparedPackage() Escape-hatch interface to the underlying implementation class.
XsltExecutable | Link() Link this package with the packages it uses to form an executable stylesheet. This process fixes up any cross-package references to files, templates, and other components, and checks to ensure that all such references are consistent.
void | Save(Stream stream) Save this compiled package to filestore.

## Property Detail

### PackageName

public string PackageName {get; }

Get the name of the package (the URI appearing as the value of `xsl:package/@name`)

Returns:

The package name

### Processor

public Processor Processor {get; }

Get the Processor from which this `XsltPackage` was constructed

### Version

public string Version {get; }

Get the version number of the package (the value of the attribute `xsl:package/@package-version`

Returns:

The package version number

## Method Detail

### getUnderlyingPreparedPackage

public net.sf.saxon.style.StylesheetPackage getUnderlyingPreparedPackage()

Escape-hatch interface to the underlying implementation class.

Returns:

the underlying `StylesheetPackage`. The interface to `StylesheetPackage` is not a stable part of the s9api API definition.

### Link

public XsltExecutable Link()

Link this package with the packages it uses to form an executable stylesheet. This process fixes up any cross-package references to files, templates, and other components, and checks to ensure that all such references are consistent.

Returns:

the resulting `XsltExecutable`

### Save

public void Save(Stream stream)

Save this compiled package to filestore.

Parameters:

`stream` - the stream to which the compiled package should be saved