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 LiteralResultElement extends StyleElement
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 |
---|---|
LiteralResultElement() |
Modifier and Type | Method | Description |
---|---|---|
Expression |
compile(Executable exec,
Declaration decl) |
Compile code to process the literal result element at runtime
|
int |
getConstructType() |
Get the type of construct.
|
StructuredQName |
getObjectName() |
Get a name identifying the object of the expression, for example a function name, template name,
variable name, key name, element name, etc.
|
java.lang.Object |
getProperty(java.lang.String name) |
Get the value of a particular property of the instruction.
|
boolean |
isInstruction() |
Specify that this is an instruction
|
DocumentImpl |
makeStylesheet(PreparedStylesheet pss) |
Make a top-level literal result element into a stylesheet.
|
boolean |
mayContainSequenceConstructor() |
Determine whether this type of element is allowed to contain a sequence constructor
|
void |
prepareAttributes() |
Process the attribute list
|
void |
validate(Declaration decl) |
Validate that this node is OK
|
protected void |
validateChildren(Declaration decl) |
Validate the children of this node, recursively.
|
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, getContainerGranularity, getContainingSlotManager, getContainingStylesheet, getDefaultCollationName, getDefaultXPathNamespace, getEffectiveVersion, getExecutable, getHostLanguage, getLastChildInstruction, getLineNumber, getLocationProvider, getNamespaceResolver, getPreparedStylesheet, getPrincipalStylesheetModule, getProcessorVersion, getProperties, getReturnedItemType, getSchemaType, getStaticContext, getSystemId, getTypeAnnotation, getWithParamInstructions, index, isActionCompleted, isDeclaration, isExcludedNamespace, isExplaining, isExtensionNamespace, isPermittedChild, issueWarning, issueWarning, isTopLevel, isXslt30Processor, makeAttributeValueTemplate, makeExpression, makeExpressionVisitor, makeNamespaceContext, makePattern, makeQName, makeSequenceType, makeSortKeys, makeTraceInstruction, markTailCalls, mayContainFallback, mayContainParam, postValidate, processAllAttributes, processAttributes, processDefaultCollationAttribute, processDefaultXPathNamespaceAttribute, processExcludedNamespaces, processExtensionElementAttribute, processStandardAttributes, processVersionAttribute, reportAbsence, seesAvuncularVariables, setActionCompleted, setObjectName, setValidationError, substituteFor, typeCheck, typeCheck, undeclaredNamespaceError, validateSubtree, xPath10ModeIsEnabled
public boolean mayContainSequenceConstructor()
mayContainSequenceConstructor
in class StyleElement
public boolean isInstruction()
isInstruction
in class StyleElement
public void prepareAttributes() throws XPathException
prepareAttributes
in class StyleElement
XPathException
- if a static error is detectedpublic void validate(Declaration decl) throws XPathException
validate
in class StyleElement
decl
- XPathException
- if any error is found during validationprotected void validateChildren(Declaration decl) throws XPathException
validateChildren
in class StyleElement
decl
- XPathException
- if validation failspublic Expression compile(Executable exec, Declaration decl) throws XPathException
compile
in class StyleElement
exec
- the Executabledecl
- the containing top-level declaration, for example xsl:function or xsl:templateXPathException
- if validation failspublic DocumentImpl makeStylesheet(PreparedStylesheet pss) throws XPathException
pss
- the PreparedStylesheet (the compiled stylesheet as provided)XPathException
public int getConstructType()
Location
. This method is part of the
InstructionInfo
interfacegetConstructType
in interface InstructionInfo
getConstructType
in class StyleElement
public StructuredQName getObjectName()
getObjectName
in interface InstructionInfo
getObjectName
in class StyleElement
public java.lang.Object getProperty(java.lang.String name)
InstructionInfo
interface for run-time tracing and debugging. The properties
available include all the attributes of the source instruction (named by the attribute name):
these are all provided as string values.getProperty
in interface InstructionInfo
getProperty
in class StyleElement
name
- The name of the required property