arabica/include/XSLT/impl/xslt_comment.hpp
2013-01-05 21:26:35 +00:00

35 lines
726 B
C++

#ifndef ARABICA_XSLT_COMMENT_HPP
#define ARABICA_XSLT_COMMENT_HPP
#include "xslt_item.hpp"
namespace Arabica
{
namespace XSLT
{
template<class stringT, class adaptorT>
class Comment : public ItemContainer<stringT, adaptorT>
{
public:
typedef stringT string_type;
typedef adaptorT string_adaptor;
Comment() { }
virtual ~Comment() { }
virtual void execute(const DOM::Node<string_type, string_adaptor>& node, ExecutionContext<string_type, string_adaptor>& context) const
{
context.sink().start_comment();
this->execute_children(node, context);
context.sink().end_comment();
} // execute
}; // class Comment
} // namespace XSLT
} // namespace Arabica
#endif