| |
|
| java.lang.Object net.sf.saxon.style.ExpressionContext
ExpressionContext | public class ExpressionContext implements XSLTStaticContext(Code) | | An ExpressionContext represents the context for an XPath expression written
in the stylesheet.
|
bindVariable | public VariableReference bindVariable(int fingerprint) throws StaticError(Code) | | Bind a variable to an object that can be used to refer to it
Parameters: fingerprint - The fingerprint of the variable name a VariableDeclaration object that can be used to identify it in the Bindery throws: net.sf.saxon.trans.StaticError - if the variable has not been declared |
getBaseURI | public String getBaseURI()(Code) | | Get the Base URI of the element containing the expression, for resolving any
relative URI's used in the expression.
Used by the document() function.
|
getCollation | public Comparator getCollation(String name)(Code) | | Get a named collation.
Parameters: name - The name of the required collation. Supply null to get the default collation. the collation; or null if the required collation is not found. |
getDefaultCollationName | public String getDefaultCollationName()(Code) | | Get the default collation. Return null if no default collation has been defined
|
getDefaultElementNamespace | public short getDefaultElementNamespace()(Code) | | Get the default XPath namespace, as a namespace code that can be looked up in the NamePool
|
getDefaultFunctionNamespace | public String getDefaultFunctionNamespace()(Code) | | Get the default function namespace
|
getFingerprint | public int getFingerprint(String qname, boolean useDefault) throws XPathException(Code) | | Get a fingerprint for a name, using this as the context for namespace resolution
Parameters: qname - The name as written, in the form "[prefix:]localname" Parameters: useDefault - Defines the action when there is no prefix. If true, usethe default namespace URI (as for element names). If false, use no namespace URI(as for attribute names). -1 if the name is not already present in the name pool |
getFunctionLibrary | public FunctionLibrary getFunctionLibrary()(Code) | | Get the function library containing all the in-scope functions available in this static
context
|
getImportedSchemaNamespaces | public Set getImportedSchemaNamespaces()(Code) | | Get the set of imported schemas
a Set, the set of URIs representing the names of imported schemas |
getLineNumber | public int getLineNumber()(Code) | | Get the line number of the expression within its containing entity
Returns -1 if no line number is available
|
getNamePool | public NamePool getNamePool()(Code) | | Get the NamePool used for compiling expressions
|
getStyleElement | public StyleElement getStyleElement()(Code) | | Get the stylesheet element containing this XPath expression
the element in the tree representation of the source stylesheet |
getSystemId | public String getSystemId()(Code) | | Get the System ID of the entity containing the expression (used for diagnostics)
|
getURIForPrefix | public String getURIForPrefix(String prefix) throws XPathException(Code) | | Get the URI for a prefix, using this Element as the context for namespace resolution.
The default namespace will not be used when the prefix is empty.
Parameters: prefix - The prefix throws: XPathException - if the prefix is not declared |
isAllowedBuiltInType | public boolean isAllowedBuiltInType(AtomicType type)(Code) | | Determine whether a built-in type is available in this context. This method caters for differences
between host languages as to which set of types are built in.
Parameters: type - the supposedly built-in type. This will always be a type in theXS or XDT namespace. true if this type can be used in this static context |
isElementAvailable | public boolean isElementAvailable(String qname) throws XPathException(Code) | | Determine if an extension element is available
throws: XPathException - if the name is invalid or the prefix is not declared |
isImportedSchema | public boolean isImportedSchema(String namespace)(Code) | | Test whether a schema has been imported for a given namespace
Parameters: namespace - the target namespace of the required schema true if a schema for this namespace has been imported |
isInBackwardsCompatibleMode | public boolean isInBackwardsCompatibleMode()(Code) | | Determine whether Backwards Compatible Mode is used
|
makeEarlyEvaluationContext | public XPathContext makeEarlyEvaluationContext()(Code) | | Construct a dynamic context for early evaluation of constant subexpressions
|
|
|
|