The context within which a query is performed against a Container.
The context within which a query is performed against a Container is complex enough to warrent an encapsulating class. This context includes a namespace mapping, variable bindings, and flags that determine how the query result set should be determined and returned to the caller.
The XPath syntax permits expressions to refer to namespace prefixes, but not to define them. The Context class provides a number of namespace management methods so that the caller may manage the namespace prefix to URI mapping.
The XPath syntax also permits expressions to refer to variables, but not to define them. The Context class provides a number of methods so that the caller may manage the variable to value bindings.
allocate
self[variable]
self[variable] = value
clear_namespaces
clear
del_namespace(name)
evaltype
evaltype=(type)
get_namespace(name)
namespace[name]
initialize(returntype = nil, evaluation = nil)
metadata
with_metadata
metadata=(with)
with_metadata=(with)
returntype
returntype=(type)
namespace[name]=(uri)
set_namespace(name, uri)
Define a namespace prefix, providing the URI that it maps onto
If uri is nil delete the namespace