mirror of
https://github.com/jezhiggins/arabica
synced 2024-12-30 22:23:40 +01:00
35 lines
726 B
C++
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
|
|
|