Package net.sf.saxon.style
Class TextValueTemplateContext
java.lang.Object
net.sf.saxon.style.ExpressionContext
net.sf.saxon.style.TextValueTemplateContext
- All Implemented Interfaces:
StaticContext
Define the static context for expressions appearing between curly braces in a text value template.
The rules for binding local variables are slightly different from the rules for variables appearing
within attribute nodes.
-
Constructor Summary
ConstructorsConstructorDescriptionTextValueTemplateContext
(StyleElement parent, TextValueTemplateNode textNode) -
Method Summary
Modifier and TypeMethodDescriptionbindVariable
(StructuredQName qName) Bind a variable to an object that can be used to refer to itMethods inherited from class net.sf.saxon.style.ExpressionContext
getAttributeName, getConfiguration, getContainingLocation, getDecimalFormatManager, getDefaultCollationName, getDefaultElementNamespace, getDefaultFunctionNamespace, getFunctionLibrary, getImportedSchemaNamespaces, getKeyManager, getNamespaceResolver, getOptimizerOptions, getPackageData, getRequiredContextItemType, getStaticBaseURI, getStyleElement, getSystemId, getUnprefixedElementMatchingPolicy, getXPathVersion, isImportedSchema, isInBackwardsCompatibleMode, isSchemaAware, issueWarning, makeEarlyEvaluationContext, makeRetainedStaticContext, resolveTypeAlias
-
Constructor Details
-
TextValueTemplateContext
-
-
Method Details
-
bindVariable
Bind a variable to an object that can be used to refer to it- Specified by:
bindVariable
in interfaceStaticContext
- Overrides:
bindVariable
in classExpressionContext
- Parameters:
qName
- the name of the variable- Returns:
- a VariableDeclaration object that can be used to identify it in the Bindery,
- Throws:
XPathException
- if the variable has not been declared
-