mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-17 18:12:04 +01:00
attribute and elements now form there own variable scope.
This commit is contained in:
parent
216bfe0590
commit
441be1bbf2
3 changed files with 3 additions and 0 deletions
|
@ -50,6 +50,7 @@ public:
|
||||||
} // if ...
|
} // if ...
|
||||||
|
|
||||||
context.sink().start_attribute(name, namesp);
|
context.sink().start_attribute(name, namesp);
|
||||||
|
ChainStackFrame frame(context);
|
||||||
execute_children(node, context);
|
execute_children(node, context);
|
||||||
context.sink().end_attribute();
|
context.sink().end_attribute();
|
||||||
} // execute
|
} // execute
|
||||||
|
|
|
@ -55,6 +55,7 @@ public:
|
||||||
|
|
||||||
if(context.sink().start_element(name, namesp))
|
if(context.sink().start_element(name, namesp))
|
||||||
{
|
{
|
||||||
|
ChainStackFrame frame(context);
|
||||||
execute_children(node, context);
|
execute_children(node, context);
|
||||||
context.sink().end_element(name, namesp);
|
context.sink().end_element(name, namesp);
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,6 +70,7 @@ public:
|
||||||
for(std::vector<InlineAttribute>::const_iterator a = attrs_.begin(), ae = attrs_.end(); a != ae; ++a)
|
for(std::vector<InlineAttribute>::const_iterator a = attrs_.begin(), ae = attrs_.end(); a != ae; ++a)
|
||||||
a->execute(node, context);
|
a->execute(node, context);
|
||||||
|
|
||||||
|
ChainStackFrame frame(context);
|
||||||
execute_children(node, context);
|
execute_children(node, context);
|
||||||
context.sink().end_element(name_, namespace_);
|
context.sink().end_element(name_, namespace_);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue