attribute and elements now form there own variable scope.

This commit is contained in:
jez 2008-08-03 17:11:27 +01:00
parent 216bfe0590
commit 441be1bbf2
3 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -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);
} }

View file

@ -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_);
} }