public class XSLStylesheet extends StyleElement
Modifier and Type | Field and Description |
---|---|
static int |
ANNOTATION_PRESERVE |
static int |
ANNOTATION_STRIP |
static int |
ANNOTATION_UNSPECIFIED |
(package private) PreparedStylesheet |
exec |
ACTION_COMPILE, ACTION_FIXUP, ACTION_OPTIMIZE, ACTION_PROCESS_ATTRIBUTES, ACTION_TYPECHECK, ACTION_VALIDATE, actionsCompleted, defaultCollationName, defaultXPathNamespace, extensionNamespaces, REPORT_ALWAYS, REPORT_IF_INSTANTIATED, REPORT_UNLESS_FALLBACK_AVAILABLE, REPORT_UNLESS_FORWARDS_COMPATIBLE, reportingCircumstances, staticContext, validationError, version
NODE_LETTER
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES
Constructor and Description |
---|
XSLStylesheet() |
Modifier and Type | Method and Description |
---|---|
Expression |
compile(Executable exec,
Declaration decl)
Dummy compile() method to satisfy the interface
|
StructuredQName |
getDefaultMode()
Get the default mode (XSLT 3.0 feature)
|
int |
getDefaultValidation()
Get the value of the default validation attribute
|
PreparedStylesheet |
getExecutable()
Get the run-time Executable object
|
int |
getInputTypeAnnotationsAttribute()
Get the value of the input-type-annotations attribute, for this module alone.
|
KeyManager |
getKeyManager()
Get the KeyManager which handles key definitions
|
LocationMap |
getLocationMap()
Get the locationMap object
|
PreparedStylesheet |
getPreparedStylesheet()
Get the owning PreparedStylesheet object.
|
PrincipalStylesheetModule |
getPrincipalStylesheetModule()
Get the principal stylesheet module
|
RuleManager |
getRuleManager()
Get the RuleManager which handles template rules
|
protected void |
index(Declaration decl,
PrincipalStylesheetModule top)
Method supplied by declaration elements to add themselves to a stylesheet-level index
|
protected boolean |
mayContainParam(String attName)
Determine whether this type of element is allowed to contain an xsl:param element
|
void |
prepareAttributes()
Prepare the attributes on the stylesheet element
|
void |
processAllAttributes()
Process the attributes of every node in the stylesheet
|
void |
setPrincipalStylesheetModule(PrincipalStylesheetModule module) |
void |
validate(Declaration decl)
Validate this element
|
allocateLocationId, allocatePatternSlots, allocateSlots, bindVariable, checkEmpty, checkSortComesFirst, checkTopLevel, checkUnknownAttribute, compileError, compileError, compileError, compileError, compileSequenceConstructor, compileWarning, compileWarning, definesExcludedNamespace, definesExtensionElement, fallbackProcessing, fixupReferences, forwardsCompatibleModeIsEnabled, getAttributeSets, getAttributeValue, getColumnNumber, getCommonChildItemType, getConstructType, getContainerGranularity, getContainingSlotManager, getContainingStylesheet, getDefaultCollationName, getDefaultXPathNamespace, getEffectiveVersion, getHostLanguage, getLastChildInstruction, getLineNumber, getLocationProvider, getNamespaceResolver, getObjectName, getProcessorVersion, getProperties, getProperty, getReturnedItemType, getSchemaType, getStaticContext, getSystemId, getTypeAnnotation, getWithParamInstructions, isActionCompleted, isDeclaration, isExcludedNamespace, isExplaining, isExtensionNamespace, isInstruction, isPermittedChild, issueWarning, issueWarning, isTopLevel, isXslt30Processor, makeAttributeValueTemplate, makeExpression, makeExpressionVisitor, makeNamespaceContext, makePattern, makeQName, makeSequenceType, makeSortKeys, makeTraceInstruction, markTailCalls, mayContainFallback, mayContainSequenceConstructor, postValidate, processAttributes, processDefaultCollationAttribute, processDefaultXPathNamespaceAttribute, processExcludedNamespaces, processExtensionElementAttribute, processStandardAttributes, processVersionAttribute, reportAbsence, seesAvuncularVariables, setActionCompleted, setObjectName, setValidationError, substituteFor, typeCheck, typeCheck, undeclaredNamespaceError, validateChildren, validateSubtree, xPath10ModeIsEnabled
addAttribute, addNamespace, copy, delete, fixupInsertedNamespaces, generateId, getAttributeList, getAttributeValue, getAttributeValue, getBaseURI, getColumnNumber, getDeclaredNamespaces, getDocumentRoot, getInScopeNamespaceCodes, getLineNumber, getNameCode, getNamespaceList, getNodeKind, getPrefixForURI, getRoot, getSystemId, getTypeAnnotation, getURICodeForPrefix, getURICodeForPrefixCode, getURIForPrefix, gsetAttributeCollection, initialise, isId, isNilled, iteratePrefixes, removeAttribute, removeTypeAnnotation, rename, replaceStringValue, setAttributeList, setLineAndColumn, setLocation, setNameCode, setNamespaceDeclarations, setNamespaceList, setSystemId, setTypeAnnotation
addChild, compact, enumerateChildren, getFirstChild, getLastChild, getNthChild, getNumberOfChildren, getRawSequenceNumber, getSequenceNumber, getStringValue, getStringValueCS, hasChildNodes, insertChildren, insertChildrenAt, removeChild, replaceChildrenAt, setChildren, setRawSequenceNumber
atomize, compareOrder, equals, getConfiguration, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getRawParent, getSiblingPosition, getTypedValue, getURI, insertSiblings, isDeleted, isIdref, isSameNodeInfo, iterateAxis, iterateAxis, newBuilder, replace, setRawParent, setSiblingPosition
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLineNumber, getSystemId
getColumnNumber, getPublicId
getColumnNumber, getPublicId
PreparedStylesheet exec
public static final int ANNOTATION_UNSPECIFIED
public static final int ANNOTATION_STRIP
public static final int ANNOTATION_PRESERVE
public PreparedStylesheet getPreparedStylesheet()
getPreparedStylesheet
in class StyleElement
public void setPrincipalStylesheetModule(PrincipalStylesheetModule module)
public PrincipalStylesheetModule getPrincipalStylesheetModule()
StyleElement
getPrincipalStylesheetModule
in class StyleElement
public PreparedStylesheet getExecutable()
getExecutable
in interface Container
getExecutable
in class StyleElement
protected boolean mayContainParam(String attName)
StyleElement
mayContainParam
in class StyleElement
attName
- if null, the method tests whether an xsl:param child is allowed.
If non-null, it tests whether an xsl:param child with the given attribute name is allowedpublic LocationMap getLocationMap()
public RuleManager getRuleManager()
public StructuredQName getDefaultMode()
public KeyManager getKeyManager()
public void prepareAttributes() throws XPathException
prepareAttributes
in class StyleElement
XPathException
public int getDefaultValidation()
Validation.STRIP
public int getInputTypeAnnotationsAttribute() throws XPathException
ANNOTATION_STRIP
and ANNOTATION_PRESERVE
XPathException
public void validate(Declaration decl) throws XPathException
validate
in class StyleElement
decl
- XPathException
public void processAllAttributes() throws XPathException
processAllAttributes
in class StyleElement
XPathException
- in the event of a static error being detectedprotected void index(Declaration decl, PrincipalStylesheetModule top) throws XPathException
StyleElement
index
in class StyleElement
decl
- the Declaration being indexed. (This corresponds to the StyleElement object
except in cases where one module is imported several times with different precedence.)top
- the outermost XSLStylesheet elementXPathException
public Expression compile(Executable exec, Declaration decl)
compile
in class StyleElement
exec
- the Executabledecl
- the containing top-level declaration, for example xsl:function or xsl:template