execution context

This commit is contained in:
Jez Higgins 2012-11-08 17:21:57 +00:00
parent 16e9b2acc4
commit f4f0743d94
3 changed files with 3 additions and 2 deletions

View file

@ -183,7 +183,7 @@ public:
void applyTemplates(const DOMNode& node, ExecutionContext<string_type, string_adaptor>& context, const string_type& mode) const
{
LastFrame last(context, -1);
LastFrame<string_type, string_adaptor> last(context, -1);
context.setPosition(node, 1);
doApplyTemplates(node, context, mode, Precedence::FrozenPrecedence());
} // applyTemplates

View file

@ -121,6 +121,7 @@ class VariableClosure : public Variable_instance<string_type, string_adaptor>
{
public:
typedef typename ScopeType<string_type, string_adaptor>::Variable_instance_ptr Variable_instance_ptr;
typedef typename ScopeType<string_type, string_adaptor>::Scope Scope;
static Variable_instance_ptr create(const Variable_declaration<string_type, string_adaptor>& var,
const DOM::Node<string_type, string_adaptor>& node,

View file

@ -45,7 +45,7 @@ protected:
NodeSet nodes;
XPathValue a0 = arg(0, context, executionContext);
if(argCount() != 1)
if(baseT::argCount() != 1)
throw Arabica::XPath::UnsupportedException("two arg version of document()");
if(a0.type() != Arabica::XPath::STRING)
throw Arabica::XPath::UnsupportedException("node-set arg version of document()");