#ifndef ARABICA_XSLT_COMMENT_HANDLER_HPP #define ARABICA_XSLT_COMMENT_HANDLER_HPP #include "../xslt_comment.hpp" #include "xslt_item_container_handler.hpp" namespace Arabica { namespace XSLT { template class CommentHandler : public ItemContainerHandler > { public: typedef stringT string_type; typedef adaptorT string_adaptor; CommentHandler(CompilationContext& context) : ItemContainerHandler >(context) { } // CommentHandler virtual Comment* createContainer(const string_type& /* namespaceURI */, const string_type& /* localName */, const string_type& /* qName */, const SAX::Attributes& atts) { if(atts.getLength() != 0) throw SAX::SAXException("xsl:comment can not have attributes"); return new Comment(); } // createContainer }; // class CommentHandler } // namespace XSLT } // namespace Arabica #endif