public interface XPathStaticContext extends StaticContext
IndependentContext
, and
that implementation should be adequate for most purposes; but for extra customization, a user-written
implementation of this interface may be used instead.Modifier and Type | Method and Description |
---|---|
XPathVariable |
declareVariable(QNameValue qname)
Declare a variable.
|
XPathVariable |
declareVariable(java.lang.String namespaceURI,
java.lang.String localName)
Declare a variable.
|
SlotManager |
getStackFrameMap()
Get a Stack Frame Map containing definitions of all the declared variables.
|
void |
setDefaultElementNamespace(java.lang.String uri)
Set the default namespace for elements and types
|
void |
setNamespaceResolver(NamespaceResolver resolver)
Set an external namespace resolver.
|
bindVariable, getConfiguration, getContainingLocation, getDecimalFormatManager, getDefaultCollationName, getDefaultElementNamespace, getDefaultFunctionNamespace, getFunctionLibrary, getImportedSchemaNamespaces, getKeyManager, getNamespaceResolver, getPackageData, getRequiredContextItemType, getStaticBaseURI, getSystemId, getXPathVersion, isImportedSchema, isInBackwardsCompatibleMode, issueWarning, makeEarlyEvaluationContext, makeRetainedStaticContext, resolveTypeAlias
void setDefaultElementNamespace(java.lang.String uri)
uri
- The namespace to be used to qualify unprefixed element names and type names appearing
in the XPath expression.void setNamespaceResolver(NamespaceResolver resolver)
resolver
- the external namespace resolverXPathVariable declareVariable(QNameValue qname)
qname
- The name of the variableXPathVariable declareVariable(java.lang.String namespaceURI, java.lang.String localName)
namespaceURI
- The namespace URI of the name of the variable. Supply "" to represent
names in no namespace (null is also accepted)localName
- The local part of the name of the variable (an NCName)SlotManager getStackFrameMap()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.