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(String namespaceURI,
String localName)
Declare a variable.
|
SlotManager |
getStackFrameMap()
Get a Stack Frame Map containing definitions of all the declared variables.
|
void |
setDefaultElementNamespace(String uri)
Set the default namespace for elements and types
|
void |
setNamespaceResolver(NamespaceResolver resolver)
Set an external namespace resolver.
|
bindVariable, getBaseURI, getCollation, getConfiguration, getDecimalFormatManager, getDefaultCollationName, getDefaultElementNamespace, getDefaultFunctionNamespace, getFunctionLibrary, getImportedSchemaNamespaces, getLineNumber, getLocationMap, getNamePool, getNamespaceResolver, getRequiredContextItemType, getSystemId, getURIForPrefix, getXPathLanguageLevel, isAllowedBuiltInType, isImportedSchema, isInBackwardsCompatibleMode, isSchemaAware, issueWarning, makeEarlyEvaluationContext
void setDefaultElementNamespace(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)
XPathEvaluator.declareVariable(java.lang.String, java.lang.String)
method.qname
- The name of the variableXPathVariable declareVariable(String namespaceURI, String localName)
XPathEvaluator.declareVariable(java.lang.String, java.lang.String)
method.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-2013 Saxonica Limited. All rights reserved.