public abstract class StyleElement extends ElementImpl
Note: this class implements Locator. The element retains information about its own location in the stylesheet, which is useful when an XSLT static error is found.
Modifier and Type | Class and Description |
---|---|
static class |
StyleElement.OnFailure |
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_COMPILE |
static int |
ACTION_FIXUP |
static int |
ACTION_OPTIMIZE |
static int |
ACTION_PROCESS_ATTRIBUTES |
static int |
ACTION_TYPECHECK |
static int |
ACTION_VALIDATE |
protected int |
actionsCompleted |
protected java.lang.String |
defaultCollationName |
protected StructuredQName |
defaultMode |
protected java.lang.String |
defaultXPathNamespace |
protected boolean |
expandText |
protected java.lang.String[] |
extensionNamespaces |
protected StyleElement.OnFailure |
reportingCircumstances |
protected ExpressionContext |
staticContext |
protected XmlProcessingIncident |
validationError |
protected int |
version |
static java.lang.String[] |
YES_NO |
NODE_LETTER
Constructor and Description |
---|
StyleElement()
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected Location |
allocateLocation()
Allocate a location
|
protected Expression |
arrayToSequence(Expression arrayExpr)
Adapt an expression that returns an array to one that returns a representation of
the array as a sequence of single-entry maps, as required for the proposed XSLT 4.0
xsl:for-each/iterate instructions with an "array" attribute
|
SourceBinding |
bindLocalVariable(StructuredQName qName)
Bind a variable reference used in this element to the compiled form of the XSLVariable element in which it is
declared, considering only local variables and params
|
SourceBinding |
bindVariable(StructuredQName qName)
Bind a variable used in this element to the compiled form of the XSLVariable element in which it is
declared
|
void |
checkEmpty()
Convenience method to check that the stylesheet element is empty
|
void |
checkTopLevel(java.lang.String errorCode,
boolean allowOverride)
Convenience method to check that the stylesheet element is at the top level (that is,
as a child of xsl:stylesheet or xsl:transform)
|
protected void |
checkUnknownAttribute(NodeName nc)
Check whether an unknown attribute is permitted.
|
Expression |
compile(Compilation compilation,
ComponentDeclaration decl)
Compile the instruction on the stylesheet tree into an executable instruction
for use at run-time.
|
void |
compileDeclaration(Compilation compilation,
ComponentDeclaration decl)
Compile a declaration in the stylesheet tree
for use at run-time.
|
void |
compileError(java.lang.String message)
Report a static error in the stylesheet
|
void |
compileError(java.lang.String message,
java.lang.String errorCode)
Compile time error, specifying an error code
|
void |
compileError(java.lang.String message,
java.lang.String errorCode,
Location loc) |
void |
compileError(java.lang.String message,
StructuredQName errorCode)
Compile time error, specifying an error code
|
void |
compileError(XmlProcessingError error)
Report an error with diagnostic information
|
void |
compileError(XPathException err) |
void |
compileErrorInAttribute(java.lang.String message,
java.lang.String errorCode,
java.lang.String attributeName)
Compile time error, specifying an error code and the name of the attribute that
is in error.
|
Expression |
compileSequenceConstructor(Compilation compilation,
ComponentDeclaration decl,
boolean includeParams)
Compile the children of this instruction on the stylesheet tree, adding the
subordinate instructions to the parent instruction on the execution tree.
|
Expression |
compileSequenceConstructor(Compilation compilation,
ComponentDeclaration decl,
SequenceIterator iter,
boolean includeParams)
Compile the children of this instruction on the stylesheet tree, adding the
subordinate instructions to the parent instruction on the execution tree.
|
void |
compileWarning(java.lang.String message,
java.lang.String errorCode) |
void |
compileWarning(java.lang.String message,
java.lang.String errorCode,
Location location) |
void |
compileWarning(java.lang.String message,
StructuredQName errorCode) |
void |
fixupReferences()
Fix up references from XPath expressions.
|
protected java.lang.String |
generateId() |
java.lang.String |
getAttributeValue(java.lang.String clarkName)
Get an attribute value given the Clark name of the attribute (that is,
the name in {uri}local format).
|
java.lang.String |
getBaseURI()
Get the base URI of the element, which acts as the static base URI for XPath expressions defined
on this element.
|
SourceBinding |
getBindingInformation(StructuredQName name)
Ask whether this element contains a binding for a variable with a given name; and if it does,
return the source binding information
|
Compilation |
getCompilation() |
Configuration |
getConfiguration()
Get the configuration
|
StylesheetPackage |
getContainingPackage()
Get the containing package (the principal stylesheet module of the package in which
this XSLT element appears)
|
SlotManager |
getContainingSlotManager()
Get the SlotManager for the containing Procedure definition
|
Visibility |
getDeclaredVisibility()
Get the visibility of the component.
|
protected java.lang.String |
getDefaultCollationName()
Get the default collation for this stylesheet element.
|
java.lang.String |
getDefaultXPathNamespace()
Get the default XPath namespace for elements and types
|
NamespaceResolver |
getNamespaceResolver()
Get the namespace context of the instruction.
|
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.
|
StylesheetPackage |
getPackageData() |
PrincipalStylesheetModule |
getPrincipalStylesheetModule()
Get the principal stylesheet module of the package in which
this XSLT element appears
|
java.util.Iterator<java.lang.String> |
getProperties()
Get an iterator over all the properties available.
|
SchemaType |
getSchemaType(java.lang.String typeAtt)
Get the Schema type definition for a type named in the stylesheet (in a
"type" attribute).
|
ExpressionContext |
getStaticContext()
Get the static context for expressions on this element
|
ExpressionContext |
getStaticContext(StructuredQName attributeName) |
SimpleType |
getTypeAnnotation(SchemaType schemaType)
Get the type annotation to use for a given schema type
|
StylesheetPackage |
getUsedPackage()
Assuming this is an xsl:use-package element, find the package to which it refers.
|
Visibility |
getVisibility()
Get the visibility of the component.
|
WithParam[] |
getWithParamInstructions(Expression parent,
Compilation compilation,
ComponentDeclaration decl,
boolean tunnel)
Get the list of xsl:with-param elements for a calling element (apply-templates,
call-template, apply-imports, next-match).
|
Actor |
getXslOriginal(int componentKind)
Check that a reference to xsl:original appears within an xsl:override element, and that
the name of the containing component matches the name of a component in the used stylesheet
package; return the component in that package with matching symbolic name
|
protected SourceBinding |
hasImplicitBinding(StructuredQName name)
Ask whether this particular element implicitly binds a given variable (used for xsl:accumulator-rule)
|
void |
index(ComponentDeclaration decl,
PrincipalStylesheetModule top)
Method supplied by declaration elements to add themselves to a stylesheet-level index
|
protected void |
invalidAttribute(java.lang.String attributeName,
java.lang.String allowedValues) |
boolean |
isDeclaration()
Ask whether this node is a declaration, that is, a permitted child of xsl:stylesheet
(including xsl:include and xsl:import).
|
protected boolean |
isExtensionAttributeAllowed(java.lang.String attribute)
Ask if an extension attribute is allowed; if no Professional Edition license is available,
issue a warning saying the attribute is ignored, and return false
|
boolean |
isExtensionNamespace(java.lang.String uri)
Check whether a namespace uri defines an extension element.
|
boolean |
isInstruction()
Ask whether this node is an instruction.
|
static boolean |
isNo(java.lang.String s)
Ask whether an attribute is "no" or one of its accepted synonyms
|
protected boolean |
isPermittedChild(StyleElement child)
Check whether a given child is permitted for this element.
|
boolean |
isSchemaAware()
Ask whether the code is compiled in schema-aware mode
|
protected void |
issueWarning(java.lang.String message,
javax.xml.transform.SourceLocator locator)
Report a warning to the error listener
|
protected void |
issueWarning(XPathException error)
Report a warning to the error listener
|
boolean |
isTopLevel()
Test whether this is a top-level element
|
protected boolean |
isWithinDeclaredStreamableConstruct() |
static boolean |
isYes(java.lang.String s)
Ask whether an attribute is "yes" or one of its accepted synonyms
|
protected Expression |
makeAttributeValueTemplate(java.lang.String expression,
AttributeInfo att)
Make an attribute value template in the context of this stylesheet element
|
Expression |
makeExpression(java.lang.String expression,
AttributeInfo att)
Compile an XPath expression in the context of this stylesheet element
|
ExpressionVisitor |
makeExpressionVisitor()
Make an expression visitor
|
StructuredQName |
makeQName(java.lang.String lexicalQName,
java.lang.String errorCode,
java.lang.String attributeName)
Make a structured QName, using this Element as the context for namespace resolution.
|
RetainedStaticContext |
makeRetainedStaticContext() |
SequenceType |
makeSequenceType(java.lang.String sequenceType)
Process an attribute whose value is a SequenceType
|
protected Expression |
mapToSequence(Expression mapExpr)
Adapt an expression that returns a map to one that returns a representation of
the map as a sequence of two-entry maps containing the "key" and "value" fields,
as required for the proposed XSLT 4.0 xsl:for-each/iterate instructions with a "map" attribute
|
protected boolean |
markTailCalls()
Mark tail-recursive calls on templates and functions.
|
protected boolean |
mayContainFallback()
Determine whether this type of element is allowed to contain an xsl:fallback
instruction.
|
protected boolean |
mayContainParam()
Determine whether this type of element is allowed to contain an xsl:param element
|
protected boolean |
mayContainSequenceConstructor()
Determine whether this type of element is allowed to contain a sequence constructor
|
void |
postValidate()
Hook to allow additional validation of a parent element immediately after its
children have been validated.
|
protected abstract void |
prepareAttributes()
Set the attribute list for the element.
|
void |
processAllAttributes()
Process the attributes of this element and all its children
|
protected void |
processAttributes()
Process the attribute list for the element.
|
boolean |
processBooleanAttribute(java.lang.String name,
java.lang.String value)
Process an attribute whose value is yes, no, true, false, 1, or 0; returning true or false.
|
void |
processStandardAttributes(java.lang.String namespace)
Process the standard attributes such as
[xsl:]expand-text . |
protected void |
processVersionAttribute(java.lang.String ns)
Process the [xsl:]version attribute if there is one
|
void |
reportAbsence(java.lang.String attribute)
Convenience method to report the absence of a mandatory attribute
|
protected void |
requireXslt40(java.lang.String attributeName)
Report an error unless XSLT 4.0 syntax is enabled.
|
protected boolean |
seesAvuncularVariables()
Ask whether variables declared in an "uncle" element are visible.
|
void |
setCompilation(Compilation compilation) |
protected static void |
setInstructionLocation(StyleElement source,
Expression child)
Set location information on a compiled instruction
|
void |
setObjectName(StructuredQName qName)
Set the object name, for example the name of a function, variable, or template declared on this element
|
void |
setValidationError(XmlProcessingIncident reason,
StyleElement.OnFailure circumstances)
Set a validation error.
|
void |
substituteFor(StyleElement temp)
Make this node a substitute for a temporary one previously added to the tree.
|
Expression |
typeCheck(java.lang.String name,
Expression exp)
Type-check an expression.
|
Pattern |
typeCheck(java.lang.String name,
Pattern pattern)
Type-check a pattern.
|
void |
validate(ComponentDeclaration decl)
Check that the stylesheet element is valid.
|
protected void |
validateChildren(ComponentDeclaration decl,
boolean excludeStylesheet)
Validate the children of this node, recursively.
|
void |
validateSubtree(ComponentDeclaration decl,
boolean excludeStylesheet)
Recursive walk through the stylesheet to validate all nodes
|
protected int |
validateValidationAttribute(java.lang.String value)
Validate the value of the [xsl:]validation attribute
|
addAttribute, addNamespace, addNamespace, attributes, checkNotNamespaceSensitiveElement, copy, delete, fixupInsertedNamespaces, generateId, getAllNamespaces, getAttributeValue, getColumnNumber, getDeclaredNamespaces, getLineNumber, getNodeKind, getNodeName, getRoot, getSchemaType, getSystemId, getURIForPrefix, initialise, isId, isIdref, isIdRefNode, isInScopeNamespace, isNilled, iteratePrefixes, removeAttribute, removeNamespace, removeTypeAnnotation, rename, replaceStringValue, setAttributeInfo, setAttributes, setLocation, setNamespaceMap, setNilled, setNodeName, setSystemId, setTypeAnnotation
addChild, compact, getFirstChild, getLastChild, getNthChild, getNumberOfChildren, getRawSequenceNumber, getSequenceNumber, getUnicodeStringValue, hasChildNodes, insertChildren, insertChildrenAt, iterateChildren, removeChild, replaceChildrenAt, setChildren, setRawSequenceNumber
atomize, compareOrder, effectiveBooleanValue, equals, getDisplayName, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getRawParent, getSiblingPosition, getSuccessorElement, getTreeInfo, getURI, hasFingerprint, hashCode, head, insertSiblings, isDeleted, iterateAxis, iterateAxis, newBuilder, replace, saveLocation, setRawParent, setSiblingPosition
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
asActiveSource, children, children, deliver, getGenre, getPublicId, isSameNodeInfo, isStreamed, toShortString
getLength, getStringValue, itemAt, iterate, reduce, subsequence
asIterable, concatenate, containsNode, materialize
makeRepeatable
protected java.lang.String[] extensionNamespaces
protected int version
protected ExpressionContext staticContext
protected XmlProcessingIncident validationError
protected StyleElement.OnFailure reportingCircumstances
protected java.lang.String defaultXPathNamespace
protected java.lang.String defaultCollationName
protected StructuredQName defaultMode
protected boolean expandText
protected int actionsCompleted
public static final int ACTION_VALIDATE
public static final int ACTION_COMPILE
public static final int ACTION_TYPECHECK
public static final int ACTION_OPTIMIZE
public static final int ACTION_FIXUP
public static final int ACTION_PROCESS_ATTRIBUTES
public static final java.lang.String[] YES_NO
public Compilation getCompilation()
public void setCompilation(Compilation compilation)
public StylesheetPackage getPackageData()
public Configuration getConfiguration()
NodeImpl
getConfiguration
in interface NodeInfo
getConfiguration
in class NodeImpl
getTreeInfo().getConfiguration()
.public ExpressionContext getStaticContext()
public ExpressionContext getStaticContext(StructuredQName attributeName)
public java.lang.String getBaseURI()
getBaseURI
in interface NodeInfo
getBaseURI
in class ElementImpl
public ExpressionVisitor makeExpressionVisitor()
public boolean isSchemaAware()
public void substituteFor(StyleElement temp)
temp
- the element which this one is substituting forpublic void setValidationError(XmlProcessingIncident reason, StyleElement.OnFailure circumstances)
reason
- the details of the errorcircumstances
- a code identifying the circumstances under which the error is to be reportedpublic boolean isInstruction()
public boolean isDeclaration()
public Visibility getVisibility()
invalidAttribute(String, String)
if the value is invalid.Visibility.PRIVATE
if the visibility attribute is absent.public Visibility getDeclaredVisibility()
protected boolean markTailCalls()
protected boolean mayContainSequenceConstructor()
protected boolean mayContainFallback()
protected boolean mayContainParam()
public final StructuredQName makeQName(java.lang.String lexicalQName, java.lang.String errorCode, java.lang.String attributeName)
lexicalQName
- The lexical QName as written, in the form "[prefix:]localname". Leading and trailing whitespace
will be trimmed. The EQName syntax "Q{uri}local" is also
accepted.errorCode
- The error code to be used if the QName is not valid. If this is set to null,
then the code used is XTSE0280 for an undeclared prefix, and XTSE0020
for all other errors. The code XTSE0080 is used if the URI is a reserved
namespace, regardless of the supplied error code.attributeName
- EQName of the attribute containing the QName, for use in error reporting.
May be null.public StylesheetPackage getUsedPackage()
public Actor getXslOriginal(int componentKind) throws XPathException
componentKind
- the kind of component required, e.g. StandardNames.XSL_TEMPLATEXPathException
- if the xsl:original reference appears in an invalid contextpublic RetainedStaticContext makeRetainedStaticContext()
public NamespaceResolver getNamespaceResolver()
public void processAllAttributes() throws XPathException
XPathException
- in the event of a static error being detectedpublic void processStandardAttributes(java.lang.String namespace)
[xsl:]expand-text
. Invokes
compileError(String)
or similar if the value of any of these attributes
is invalid.
The method processes:
extension-element-prefixes
exclude-result-prefixes
version
default-xpath-namespace
default-validation
expand-text
but not:
default-collation
default-mode
namespace
- either "" to find the attributes in the null namespace,
or NamespaceConstant.XSLT to find them in the XSLT namespacepublic java.lang.String getAttributeValue(java.lang.String clarkName)
clarkName
- the name of the attribute in {uri}local formatprotected final void processAttributes()
protected void checkUnknownAttribute(NodeName nc)
nc
- The name code of the attribute nameprotected abstract void prepareAttributes()
public Expression makeExpression(java.lang.String expression, AttributeInfo att)
expression
- the source text of the XPath expressionatt
- the attribute containing the XPath expression, or
null if the expression is in a text nodeprotected Expression makeAttributeValueTemplate(java.lang.String expression, AttributeInfo att)
expression
- the source text of the attribute value templateatt
- the attribute containing the AVT, or null in the case of a text value templatepublic boolean processBooleanAttribute(java.lang.String name, java.lang.String value)
name
- the name of the attribute (used for diagnostics)value
- the value of the attributepublic static boolean isYes(java.lang.String s)
s
- the value to be tested. Whitespace should be trimmed by the callerpublic static boolean isNo(java.lang.String s)
s
- the value to be tested. Whitespace should be trimmed by the callerpublic SequenceType makeSequenceType(java.lang.String sequenceType) throws XPathException
sequenceType
- the source text of the attributeXPathException
- if the syntax is invalid or for example if it refers to a type
that is not in the static contextprotected void processVersionAttribute(java.lang.String ns)
ns
- the namespace URI of the attribute required, either the XSLT namespace or ""protected int validateValidationAttribute(java.lang.String value)
value
- the raw value of the attributeprotected boolean isExtensionAttributeAllowed(java.lang.String attribute)
attribute
- the name of the attributeprotected java.lang.String getDefaultCollationName()
public boolean isExtensionNamespace(java.lang.String uri)
uri
- the namespace URI being testedpublic java.lang.String getDefaultXPathNamespace()
NamespaceConstant.NULL
for the non-namespacepublic SchemaType getSchemaType(java.lang.String typeAtt)
typeAtt
- the value of the type attributepublic SimpleType getTypeAnnotation(SchemaType schemaType)
schemaType
- the schema typeprotected Expression arrayToSequence(Expression arrayExpr)
arrayExpr
- the expression in the array attributeprotected Expression mapToSequence(Expression mapExpr)
mapExpr
- the expression in the map attributepublic void validate(ComponentDeclaration decl) throws XPathException
decl
- the declaration to be validatedXPathException
- if any error is found during validationpublic void postValidate() throws XPathException
XPathException
- if any error is found during post-traversal validationpublic void index(ComponentDeclaration decl, PrincipalStylesheetModule top) throws XPathException
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
- represents the outermost XSLStylesheet or XSLPackage elementXPathException
- if any error is encounteredpublic Expression typeCheck(java.lang.String name, Expression exp) throws XPathException
name
- the name of the attribute containing the expression to be checked (used for diagnostics)exp
- the expression to be checkedXPathException
- if type-checking fails statically, that is, if it can be determined that the
supplied value for the expression cannot possibly be of the required typepublic Pattern typeCheck(java.lang.String name, Pattern pattern) throws XPathException
name
- the name of the attribute holding the pattern, for example "match": used in
diagnosticspattern
- the compiled patternXPathException
- if the pattern fails optimistic static type-checkingpublic void fixupReferences() throws XPathException
XPathException
- if any references cannot be fixed up.public SlotManager getContainingSlotManager()
public void validateSubtree(ComponentDeclaration decl, boolean excludeStylesheet) throws XPathException
decl
- the declaration to be validatedexcludeStylesheet
- true if the XSLStylesheet element is to be excludedXPathException
- if validation failsprotected void validateChildren(ComponentDeclaration decl, boolean excludeStylesheet) throws XPathException
decl
- the declaration whose children are to be validatedexcludeStylesheet
- true if the xsl:stylesheet element is to be excludedXPathException
- if validation failsprotected boolean isPermittedChild(StyleElement child)
child
- the child that may or may not be permittedpublic PrincipalStylesheetModule getPrincipalStylesheetModule()
public StylesheetPackage getContainingPackage()
public void checkTopLevel(java.lang.String errorCode, boolean allowOverride)
errorCode
- the error to throw if it is not at the top level; defaults to XTSE0010
if the value is nullallowOverride
- true if the element is allowed to appear as a child of xsl:overridepublic void checkEmpty()
public void reportAbsence(java.lang.String attribute)
attribute
- the name of the attribute whose absence is to be reportedpublic Expression compile(Compilation compilation, ComponentDeclaration decl) throws XPathException
compilation
- the compilation episodedecl
- the containing top-level declaration, for example xsl:function or xsl:templateXPathException
- if validation failsprotected boolean isWithinDeclaredStreamableConstruct()
protected java.lang.String generateId()
public void compileDeclaration(Compilation compilation, ComponentDeclaration decl) throws XPathException
compilation
- the compilation episodedecl
- the containing top-level declaration, for example xsl:function or xsl:templateXPathException
- if compilation failspublic Expression compileSequenceConstructor(Compilation compilation, ComponentDeclaration decl, boolean includeParams) throws XPathException
compilation
- the Executabledecl
- the Declaration of the containing top-level stylesheet elementincludeParams
- true if xsl:param elements are to be treated as child instructions (true
for templates but not for functions)XPathException
- if compilation failspublic Expression compileSequenceConstructor(Compilation compilation, ComponentDeclaration decl, SequenceIterator iter, boolean includeParams) throws XPathException
compilation
- the Executabledecl
- the Declaration of the containing top-level stylesheet elementiter
- Iterator over the children. This is used in the case where there are children
that are not part of the sequence constructor, for example the xsl:sort children of xsl:for-each;
the iterator can be positioned past such elements.includeParams
- true if xsl:param elements are to be treated as child instructions (true
for templates but not for functions)XPathException
- if compilation failsprotected static void setInstructionLocation(StyleElement source, Expression child)
source
- the parent elementchild
- the compiled expression tree for the instruction to be tracedprotected Location allocateLocation()
public WithParam[] getWithParamInstructions(Expression parent, Compilation compilation, ComponentDeclaration decl, boolean tunnel) throws XPathException
parent
- the compiled form of the parent instructioncompilation
- the compilation episodedecl
- the containing stylesheet declarationtunnel
- true if the tunnel="yes" parameters are wanted, false to getXPathException
- if any error is detectedpublic void compileError(XmlProcessingError error)
error
- contains information about the errorpublic void compileError(XPathException err)
public void compileError(java.lang.String message)
message
- the error messagepublic void compileError(java.lang.String message, StructuredQName errorCode)
message
- the error messageerrorCode
- the error code. May be null if not known or not definedpublic void compileError(java.lang.String message, java.lang.String errorCode)
message
- the error messageerrorCode
- the error code. May be null if not known or not definedpublic void compileError(java.lang.String message, java.lang.String errorCode, Location loc)
public void compileErrorInAttribute(java.lang.String message, java.lang.String errorCode, java.lang.String attributeName)
message
- the error messageerrorCode
- the error code. May be null if not known or not definedattributeName
- the name of the attribute. For attributes in no namespace
this is the local part of the name; for namespaced attributes
a name in Clark format may be supplied.protected void invalidAttribute(java.lang.String attributeName, java.lang.String allowedValues)
protected void requireXslt40(java.lang.String attributeName)
attributeName
- the name of the attribute if relevant, or null if no specific attribute is concernedpublic void compileWarning(java.lang.String message, StructuredQName errorCode)
public void compileWarning(java.lang.String message, java.lang.String errorCode)
public void compileWarning(java.lang.String message, java.lang.String errorCode, Location location)
protected void issueWarning(XPathException error)
error
- an exception containing the warning textprotected void issueWarning(java.lang.String message, javax.xml.transform.SourceLocator locator)
message
- the warning message textlocator
- the location of the problem in the source stylesheetpublic boolean isTopLevel()
public SourceBinding getBindingInformation(StructuredQName name)
name
- the variable namepublic SourceBinding bindVariable(StructuredQName qName)
qName
- The name of the variablepublic SourceBinding bindLocalVariable(StructuredQName qName)
qName
- The name of the variableprotected boolean seesAvuncularVariables()
protected SourceBinding hasImplicitBinding(StructuredQName name)
name
- the name of the variableSourceBinding
object representing the binding of this variable if it
exists; otherwise null;public StructuredQName getObjectName()
public void setObjectName(StructuredQName qName)
qName
- the object name as a QNamepublic java.util.Iterator<java.lang.String> getProperties()
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.