arabica/include/XSLT/impl/xslt_comment.hpp

36 lines
726 B
C++
Raw Normal View History

2007-07-19 17:01:42 +00:00
#ifndef ARABICA_XSLT_COMMENT_HPP
#define ARABICA_XSLT_COMMENT_HPP
#include "xslt_item.hpp"
namespace Arabica
{
namespace XSLT
{
2012-11-04 22:34:40 +00:00
template<class stringT, class adaptorT>
2012-11-08 16:18:49 +00:00
class Comment : public ItemContainer<stringT, adaptorT>
2007-07-19 17:01:42 +00:00
{
public:
2012-11-04 22:34:40 +00:00
typedef stringT string_type;
typedef adaptorT string_adaptor;
2007-07-19 17:01:42 +00:00
Comment() { }
virtual ~Comment() { }
2012-11-08 17:13:33 +00:00
virtual void execute(const DOM::Node<string_type, string_adaptor>& node, ExecutionContext<string_type, string_adaptor>& context) const
2007-07-19 17:01:42 +00:00
{
context.sink().start_comment();
2013-01-05 21:26:35 +00:00
this->execute_children(node, context);
2007-07-19 17:01:42 +00:00
context.sink().end_comment();
} // execute
}; // class Comment
} // namespace XSLT
} // namespace Arabica
#endif