public class XSLUsePackage extends StyleElement
ACTION_COMPILE, ACTION_FIXUP, ACTION_OPTIMIZE, ACTION_PROCESS_ATTRIBUTES, ACTION_TYPECHECK, ACTION_VALIDATE, actionsCompleted, defaultCollationName, defaultMode, defaultXPathNamespace, expandText, extensionNamespaces, IGNORED_INSTRUCTION, REPORT_ALWAYS, REPORT_DYNAMICALLY_UNLESS_FALLBACK_AVAILABLE, REPORT_IF_INSTANTIATED, REPORT_STATICALLY_UNLESS_FALLBACK_AVAILABLE, REPORT_UNLESS_FORWARDS_COMPATIBLE, reportingCircumstances, staticContext, validationError, version, YES_NONODE_LETTERIS_DTD_TYPE, IS_NILLED| Constructor and Description |
|---|
XSLUsePackage() |
| Modifier and Type | Method and Description |
|---|---|
void |
findUsedPackage(CompilerInfo info)
Bind to the package to which this xsl:use-package element refers.
|
void |
gatherNamedOverrides(PrincipalStylesheetModule module,
List<ComponentDeclaration> topLevel,
Set<SymbolicName> overrides)
Process all the xsl:override declarations in the xsl:use-package, adding the overriding named components
to the list of top-level declarations
|
void |
gatherRuleOverrides(PrincipalStylesheetModule module,
Set<SymbolicName> overrides)
Process all the xsl:override declarations in the xsl:use-package, adding the overriding template rules
to the list of top-level declarations
|
List<XSLAccept> |
getAcceptors()
Get the child xsl:accept elements
|
Set<SymbolicName> |
getExplicitAcceptedComponentNames() |
Set<SymbolicName> |
getNamedOverrides() |
PackageVersionRanges |
getPackageVersionRanges()
Get the ranges of package versions this use-package directive will accept.
|
StylesheetPackage |
getUsedPackage()
Get the package to which this xsl:use-package element refers.
|
boolean |
isDeclaration()
Ask whether this node is a declaration, that is, a permitted child of xsl:stylesheet
(including xsl:include and xsl:import).
|
void |
postValidate()
Hook to allow additional validation of a parent element immediately after its
children have been validated.
|
protected void |
prepareAttributes()
Set the attribute list for the element.
|
void |
validate(ComponentDeclaration decl)
Check that the stylesheet element is valid.
|
allocateLocalSlots, allocateLocation, bindLocalVariable, bindVariable, changesRetainedStaticContext, checkAttributeValue, checkEmpty, checkSortComesFirst, checkTopLevel, checkUnknownAttribute, compile, compileContentValueTemplate, compileDeclaration, compileError, compileError, compileError, compileError, compileErrorInAttribute, compileSequenceConstructor, compileSequenceConstructor, compileWarning, compileWarning, definesExcludedNamespace, definesExtensionElement, fallbackProcessing, findAncestorElement, findCollation, fixupReferences, forwardsCompatibleModeIsEnabled, generateId, getAttributeValue, getBaseURI, getBindingInformation, getCompilation, getConfiguration, getConstructType, getContainingPackage, getContainingSlotManager, getContainingStylesheet, getDeclaredVisibility, getDefaultCollationName, getDefaultMode, getDefaultValidation, getDefaultXPathNamespace, getEffectiveVersion, getEffectiveVersionAsString, getLastChildInstruction, getNamespaceResolver, getObjectName, getOverriddenComponent, getPackageData, getPrincipalStylesheetModule, getProperties, getProperty, getSchemaType, getStaticContext, getStaticContext, getTypeAnnotation, getUsedAttributeSets, getVisibility, getWithParamInstructions, getXslOriginal, hasImplicitBinding, index, interpretVisibilityValue, invalidAttribute, isActionCompleted, isConstructingComplexContent, isExcludedNamespace, isExpandingText, isExplaining, isExtensionNamespace, isInstruction, isNo, isPermittedChild, isSchemaAware, issueWarning, issueWarning, isTopLevel, isWithinDeclaredStreamableConstruct, isYes, makeAttributeValueTemplate, makeExpression, makeExpressionVisitor, makeExtendedSequenceType, makeNamespaceContext, makePattern, makeQName, makeRetainedStaticContext, makeSequenceType, makeSortKeys, makeTraceInstruction, markTailCalls, mayContainFallback, mayContainParam, mayContainSequenceConstructor, processAllAttributes, processAttributes, processBooleanAttribute, processDefaultCollationAttribute, processDefaultMode, processDefaultValidationAttribute, processDefaultXPathNamespaceAttribute, processExcludedNamespaces, processExpandTextAttribute, processExtensionElementAttribute, processStandardAttributes, processStreamableAtt, processVersionAttribute, reportAbsence, seesAvuncularVariables, setActionCompleted, setCompilation, setIgnoreInstruction, setObjectName, setValidationError, substituteFor, typeCheck, typeCheck, undeclaredNamespaceError, validateChildren, validateSubtree, validateValidationAttribute, xPath10ModeIsEnabledaddAttribute, addNamespace, copy, delete, fixupInsertedNamespaces, generateId, getAttributeList, getAttributeValue, getColumnNumber, getDeclaredNamespaces, getLineNumber, getNamespaceList, getNodeKind, getNodeName, getRoot, getSchemaType, getSystemId, getURIForPrefix, gsetAttributeCollection, initialise, isId, isIdref, isInScopeNamespace, isNilled, iteratePrefixes, removeAttribute, removeTypeAnnotation, rename, replaceStringValue, setAttributeList, setLocation, setNamespaceDeclarations, setNamespaceList, setNilled, setNodeName, setSystemId, setTypeAnnotationaddChild, compact, getFirstChild, getLastChild, getNthChild, getNumberOfChildren, getRawSequenceNumber, getSequenceNumber, getStringValue, getStringValueCS, hasChildNodes, insertChildren, insertChildrenAt, iterateChildren, removeChild, replaceChildrenAt, setChildren, setRawSequenceNumberatomize, compareOrder, effectiveBooleanValue, equals, getDisplayName, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getRawParent, getSiblingPosition, getSuccessorElement, getTreeInfo, getURI, hasFingerprint, head, insertSiblings, isDeleted, iterate, iterateAxis, iterateAxis, newBuilder, replace, saveLocation, setRawParent, setSiblingPositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, getGenre, getPublicId, hashCode, isSameNodeInfo, isStreamed, toShortStringgetLength, itemAt, iterator, reduce, subsequence, toGroundedValueasIterable, materializemakeRepeatableforEach, spliteratorpublic void findUsedPackage(CompilerInfo info) throws XPathException
XPathExceptionpublic StylesheetPackage getUsedPackage()
getUsedPackage in class StyleElementpublic PackageVersionRanges getPackageVersionRanges() throws XPathException
This will involve processing the attributes once to derive any ranges declared (and the name of the required package). If no range is defined, the catchall '*' is assumed.
XPathExceptionprotected void prepareAttributes()
throws XPathException
StyleElementprepareAttributes in class StyleElementXPathException - if a static error is detectedpublic boolean isDeclaration()
StyleElementisDeclaration in class StyleElementpublic void validate(ComponentDeclaration decl) throws XPathException
StyleElementvalidate in class StyleElementdecl - the declaration to be validatedXPathException - if any error is found during validationpublic Set<SymbolicName> getExplicitAcceptedComponentNames() throws XPathException
XPathExceptionpublic void postValidate()
throws XPathException
StyleElementpostValidate in class StyleElementXPathException - if any error is found during post-traversal validationpublic List<XSLAccept> getAcceptors()
public void gatherNamedOverrides(PrincipalStylesheetModule module, List<ComponentDeclaration> topLevel, Set<SymbolicName> overrides) throws XPathException
module - the top-level stylesheet module of this packagetopLevel - the list of declarations in this package (to which this method appends)overrides - set of named components for which this xsl:use-package provides an override
(which this method populates).XPathException - in the event of an error.public Set<SymbolicName> getNamedOverrides() throws XPathException
XPathExceptionpublic void gatherRuleOverrides(PrincipalStylesheetModule module, Set<SymbolicName> overrides) throws XPathException
module - the top-level stylesheet module of this package (the using package)overrides - set of named components for which this xsl:use-package provides an override
(which this method populates). If the xsl:override contains any template rules, then the named
mode will be included in this list, but the individual template rules will not be added to
the top-level list.XPathException - in the event of an error.