Package com.saxonica.ee.trans
Class PrincipalStylesheetModuleEE
java.lang.Object
net.sf.saxon.style.StylesheetModule
net.sf.saxon.style.PrincipalStylesheetModule
com.saxonica.ee.trans.PrincipalStylesheetModuleEE
- All Implemented Interfaces:
GlobalVariableManager
This version of the StylesheetPackage class represents a "real" package, that is one with
an xsl:package element, which potentially uses other packages and overrides selected
components in those packages.
-
Field Summary
Fields inherited from class net.sf.saxon.style.StylesheetModule
topLevel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addGlobalVariable
(GlobalVariable variable) Add a global variable to the collectionprotected void
Check the streamability of an attribute set declared within this stylesheet module.getEquivalentVariable
(Expression select) Get an existing global variable whose initializer is a given expression, if there is one.protected void
Process import-schema declarationsMethods inherited from class net.sf.saxon.style.PrincipalStylesheetModule
addFixupAction, addGlobalVariable, addImportedSchema, addNamespaceAlias, adjustExposedVisibility, checkAcceptableModeForPackage, combineAttributeSets, compile, compileError, compileError, complete, declareXQueryFunction, fixup, gatherOutputProperties, getAccumulatorManager, getAttributeSetDeclarations, getAttributeSets, getCharacterMap, getCharacterMapIndex, getComponent, getDecimalFormatManager, getGlobalVariableBinding, getImportedSchemaTable, getKeyManager, getNamedTemplate, getNamespaceAlias, getPrincipalStylesheetModule, getRuleManager, getSlotManager, getStylesheetDocument, getStylesheetPackage, getTypeAliasManager, hasNamespaceAliases, indexAttributeSet, indexFunction, indexMode, indexNamedTemplate, indexVariableDeclaration, isAliasResultNamespace, isDeclaredModes, isImportedSchema, optimizeTopLevel, preprocess, processAllAttributes, putStylesheetDocument, setAccumulatorManager, setNeedsDynamicOutputProperties, spliceUsePackages
Methods inherited from class net.sf.saxon.style.StylesheetModule
getAssociatedStylesheet, getConfiguration, getImporter, getInputTypeAnnotations, getMinImportPrecedence, getPrecedence, getRootElement, getStylesheetElement, loadStylesheet, loadStylesheetModule, setImporter, setInputTypeAnnotations, setMinImportPrecedence, setWasIncluded, spliceIncludes
-
Constructor Details
-
PrincipalStylesheetModuleEE
- Throws:
XPathException
-
-
Method Details
-
importSchemata
Process import-schema declarations- Overrides:
importSchemata
in classPrincipalStylesheetModule
- Throws:
XPathException
- if errors are detected
-
checkStreamability
Check the streamability of an attribute set declared within this stylesheet module. (Null implementation for Saxon-HE).- Overrides:
checkStreamability
in classPrincipalStylesheetModule
- Parameters:
aSet
- the attribute set to be checked (the method is called only if the attribute set is declared streamable)- Throws:
XPathException
- if the streamability rules are not satisifed
-
addGlobalVariable
Description copied from interface:GlobalVariableManager
Add a global variable to the collection- Specified by:
addGlobalVariable
in interfaceGlobalVariableManager
- Overrides:
addGlobalVariable
in classPrincipalStylesheetModule
- Parameters:
variable
- the variable to be added
-
getEquivalentVariable
Description copied from interface:GlobalVariableManager
Get an existing global variable whose initializer is a given expression, if there is one. Note that this depends on the logic for detecting equivalence of expressions, which is necessarily approximate. Expressions with dependencies on the static context should never be considered equivalent. If no equivalent global variable is found, return null. An implementation can always return null if it wants to avoid a lengthy search.- Specified by:
getEquivalentVariable
in interfaceGlobalVariableManager
- Overrides:
getEquivalentVariable
in classPrincipalStylesheetModule
- Parameters:
select
- the expression to which the variable is bound- Returns:
- an existing global variable with the same select expression, if one can be found; otherwise null.
-