public class XsltPackage extends Object
xsl:package
element.Modifier | Constructor and Description |
---|---|
protected |
XsltPackage(Processor p,
StylesheetPackage pp) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Get the name of the package (the URI appearing as the value of
xsl:package/@name ) |
PackageVersion |
getPackageVersion()
Get the version of the package as a structured object that meets the requirements of
http://www.w3.org/TR/xslt-30/#package-versions
|
Processor |
getProcessor()
Get the processor under which this package was created
|
StylesheetPackage |
getUnderlyingPreparedPackage()
Escape-hatch interface to the underlying implementation class.
|
String |
getVersion()
Get the version number of the package (the value of the attribute
xsl:package/@package-version . |
XsltExecutable |
link()
Link this package with the packages it uses to form an executable stylesheet.
|
void |
save(File file)
Save this compiled package to filestore.
|
protected XsltPackage(Processor p, StylesheetPackage pp)
public Processor getProcessor()
public String getName()
xsl:package/@name
)public String getVersion()
xsl:package/@package-version
.
Note that this may have had trailing zeroes truncated.public PackageVersion getPackageVersion()
public XsltExecutable link() throws SaxonApiException
SaxonApiException
- if any error is found during the linking process, for example
if the constituent packages containing duplicate component names, or if abstract components
are not resolved.public void save(File file) throws SaxonApiException
file
- the file to which the compiled package should be savedSaxonApiException
- if the compiled package cannot be saved to the specified
location.public StylesheetPackage getUnderlyingPreparedPackage()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.