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, versionattributeList, namespaceListnameCode, rootsequenceindex, NODE_LETTER, parentALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACESEMPTY_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, replaceSubExpression, reportAbsence, setLineNumber, setObjectNameCode, setValidationError, substituteFor, typeCheck, typeCheck, undeclaredNamespaceError, validateChildren, validateSubtreecopy, getAttributeList, getAttributeValue, getDeclaredNamespaces, getInScopeNamespaceCodes, getPrefixForURI, getURICodeForPrefix, getURIForPrefix, initialise, iteratePrefixes, sendNamespaceDeclarations, setNamespaceDeclarationsgenerateId, getBaseURI, getDocumentRoot, getNameCode, getNodeKind, getRoot, getSystemId, setNameCode, setSystemIdaddChild, compact, enumerateChildren, getFirstChild, getLastChild, getNthChild, getSequenceNumber, getStringValue, getStringValueCS, hasChildNodes, useChildrenArrayatomize, compareOrder, equals, getColumnNumber, getConfiguration, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getTypeAnnotation, getTypedValue, getURI, hashCode, isSameNodeInfo, iterateAxis, iterateAxisclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetSystemIdpublic boolean mayContainSequenceConstructor()
mayContainSequenceConstructor in class StyleElementprotected boolean isPermittedChild(StyleElement child)
isPermittedChild in class StyleElementpublic int getTemplateFingerprint()
protected ItemType getReturnedItemType()
getReturnedItemType in class StyleElementpublic void prepareAttributes()
throws XPathException
StyleElementprepareAttributes in class StyleElementXPathExceptionpublic void validate()
throws XPathException
StyleElementvalidate in class StyleElementXPathExceptionpublic void markTailCalls()
markTailCalls in class StyleElementpublic Expression compile(Executable exec) throws XPathException
compile in class StyleElementXPathExceptionpublic SlotManager getSlotManager()
getSlotManager in interface StylesheetProcedurepublic void allocateSlots(Expression exp)
allocateSlots in class StyleElementexp - 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 InstructionInfogetConstructType in class StyleElement