java.io.Serializable
, javax.xml.transform.Source
, javax.xml.transform.SourceLocator
, LocationProvider
, SaxonLocator
, PullEvent
, Container
, FingerprintedNode
, Item<NodeInfo>
, MutableNodeInfo
, NamespaceResolver
, NodeInfo
, ValueRepresentation<NodeInfo>
, InstructionInfo
, SiblingCountingNode
, org.xml.sax.Locator
public class XSLStylesheet extends StyleElement
Modifier and Type | Field | Description |
---|---|---|
static int |
ANNOTATION_PRESERVE |
|
static int |
ANNOTATION_STRIP |
|
static int |
ANNOTATION_UNSPECIFIED |
|
(package private) PreparedStylesheet |
exec |
NODE_LETTER
ALL_NAMESPACES, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES
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, YES_NO
Constructor | Description |
---|---|
XSLStylesheet() |
Modifier and Type | Method | 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(java.lang.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
|
addAttribute, addNamespace, copy, delete, fixupInsertedNamespaces, generateId, getAttributeList, getAttributeValue, getAttributeValue, getBaseURI, getColumnNumber, getDeclaredNamespaces, getDocumentRoot, getLineNumber, getNameCode, getNamespaceList, getNodeKind, getPrefixForURI, getRoot, getSchemaType, getSystemId, getTypeAnnotation, getURIForPrefix, gsetAttributeCollection, initialise, isId, isNilled, iteratePrefixes, removeAttribute, removeTypeAnnotation, rename, replaceStringValue, setAttributeList, setLocation, setNameCode, setNamespaceDeclarations, setNamespaceList, setSystemId, setTypeAnnotation
getLineNumber, getSystemId
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
addChild, compact, enumerateChildren, getFirstChild, getLastChild, getNthChild, getNumberOfChildren, getRawSequenceNumber, getSequenceNumber, getStringValue, getStringValueCS, hasChildNodes, insertChildren, insertChildrenAt, removeChild, replaceChildrenAt, setChildren, setRawSequenceNumber
allocateLocationId, allocatePatternSlots, allocateSlots, bindLocalVariable, bindVariable, checkAttributeValue, checkEmpty, checkSortComesFirst, checkTopLevel, checkUnknownAttribute, compileDeclaration, 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
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(java.lang.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
- if a static error is detectedpublic int getDefaultValidation()
Validation.STRIP
public int getInputTypeAnnotationsAttribute() throws XPathException
ANNOTATION_STRIP
and ANNOTATION_PRESERVE
XPathException
- if an error is detectedpublic void validate(Declaration decl) throws XPathException
validate
in class StyleElement
decl
- Not usedXPathException
- if any error is found during validationpublic 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
- if any error is encounteredpublic 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