Saxon.Api

 

 

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