public final class XSLTemplate extends StyleElement implements StylesheetProcedure
defaultCollationName, defaultXPathNamespace, extensionNamespaces, REPORT_ALWAYS, REPORT_IF_INSTANTIATED, REPORT_UNLESS_FALLBACK_AVAILABLE, REPORT_UNLESS_FORWARDS_COMPATIBLE, reportingCircumstances, staticContext, validationError, version
attributeList, namespaceList
nameCode, root
sequence
index, NODE_LETTER, parent
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, LOCAL_NAMESPACES, NO_NAMESPACES
EMPTY_VALUE_ARRAY
Constructor and Description |
---|
XSLTemplate() |
Modifier and Type | Method and Description |
---|---|
void |
allocateSlots(Expression exp)
Allocate space for range variables within predicates in the match pattern.
|
Expression |
compile(Executable exec)
Compile: this registers the template with the rule manager, and ensures
space is available for local variables
|
Template |
getCompiledTemplate()
Get the compiled template
|
int |
getConstructType()
Get the type of construct.
|
protected ItemType |
getReturnedItemType()
Determine the type of item returned by this template
|
SlotManager |
getSlotManager()
Get associated Procedure (for details of stack frame)
|
int |
getTemplateFingerprint()
Return the fingerprint for the name of this template.
|
protected boolean |
isPermittedChild(StyleElement child)
Specify that xsl:param is a permitted child
|
void |
markTailCalls()
Mark tail-recursive calls on templates and functions.
|
boolean |
mayContainSequenceConstructor()
Determine whether this type of element is allowed to contain a template-body
|
void |
prepareAttributes()
Set the attribute list for the element.
|
void |
validate()
Check that the stylesheet element is valid.
|
allocateLocationId, backwardsCompatibleModeIsEnabled, bindVariable, checkEmpty, checkSortComesFirst, checkTopLevel, checkUnknownAttribute, checkWithinTemplate, compileError, compileError, compileError, compileSequenceConstructor, compileWarning, definesExcludedNamespace, definesExtensionElement, fallbackProcessing, fixupReferences, forwardsCompatibleModeIsEnabled, getAttributeSets, getAttributeValue, getCommonChildItemType, getContainingSlotManager, getContainingStylesheet, getDefaultCollationName, getDefaultXPathNamespace, getExecutable, getHostLanguage, getLastChildInstruction, getLineNumber, getLineNumber, getLocationProvider, getNamespaceResolver, getObjectFingerprint, getObjectNameCode, getPrecedence, getPreparedStylesheet, getPrincipalStylesheet, getProperties, getProperty, getSchemaType, getStaticContext, getStylesheetFunction, getSystemId, getTargetNamePool, getTypeAnnotation, getVersion, getWithParamInstructions, isExcludedNamespace, isExplaining, isExtensionNamespace, isInstruction, issueWarning, issueWarning, isTopLevel, makeAttributeValueTemplate, makeExpression, makeNameCode, makeNamespaceContext, makePattern, makeSequenceType, makeSortKeys, makeTraceInstruction, mayContainFallback, postValidate, processAllAttributes, processAttributes, processDefaultCollationAttribute, processDefaultXPathNamespaceAttribute, processExcludedNamespaces, processExtensionElementAttribute, processVersionAttribute, reportAbsence, setLineNumber, setObjectNameCode, setValidationError, substituteFor, typeCheck, typeCheck, undeclaredNamespaceError, validateChildren, validateSubtree
copy, getAttributeList, getAttributeValue, getDeclaredNamespaces, getInScopeNamespaceCodes, getPrefixForURI, getURICodeForPrefix, getURIForPrefix, initialise, iteratePrefixes, sendNamespaceDeclarations, setNamespaceDeclarations
generateId, getBaseURI, getDocumentRoot, getNameCode, getNodeKind, getRoot, getSystemId, setNameCode, setSystemId
addChild, compact, enumerateChildren, getFirstChild, getLastChild, getNthChild, getSequenceNumber, getStringValue, getStringValueCS, hasChildNodes, useChildrenArray
atomize, compareOrder, equals, getColumnNumber, getConfiguration, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getTypeAnnotation, getTypedValue, getURI, hashCode, isSameNodeInfo, iterateAxis, iterateAxis
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getSystemId
getColumnNumber, getPublicId
getColumnNumber, getPublicId
public boolean mayContainSequenceConstructor()
mayContainSequenceConstructor
in class StyleElement
protected boolean isPermittedChild(StyleElement child)
isPermittedChild
in class StyleElement
public int getTemplateFingerprint()
protected ItemType getReturnedItemType()
getReturnedItemType
in class StyleElement
public void prepareAttributes() throws XPathException
StyleElement
prepareAttributes
in class StyleElement
XPathException
public void validate() throws XPathException
StyleElement
validate
in class StyleElement
XPathException
public void markTailCalls()
markTailCalls
in class StyleElement
public Expression compile(Executable exec) throws XPathException
compile
in class StyleElement
XPathException
public SlotManager getSlotManager()
getSlotManager
in interface StylesheetProcedure
public void allocateSlots(Expression exp)
allocateSlots
in class StyleElement
exp
- The expression containing range variables. This will be a predicate within a match pattern,
or possibly an argument to id() or key() used in a match pattern.public Template getCompiledTemplate()
public int getConstructType()
Location
. This method is part of the InstructionInfo
interfacegetConstructType
in interface InstructionInfo
getConstructType
in class StyleElement