mirror of
https://github.com/jezhiggins/arabica
synced 2024-11-15 19:48:00 +01:00
execution context
This commit is contained in:
parent
16e9b2acc4
commit
f4f0743d94
3 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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()");
|
||||
|
|
Loading…
Reference in a new issue