#ifndef ARABICA_XSLT_MESSAGE_HANDLER_HPP #define ARABICA_XSLT_MESSAGE_HANDLER_HPP #include "../xslt_message.hpp" #include "xslt_item_container_handler.hpp" namespace Arabica { namespace XSLT { template class MessageHandler : public ItemContainerHandler > { typedef ItemContainerHandler > baseT; public: MessageHandler(CompilationContext& context) : baseT(context) { } // MessageHandler protected: virtual Message* createContainer(const string_type& /* namespaceURI */, const string_type& /* localName */, const string_type& qName, const SAX::Attributes& atts) { static const ValueRule rules[] = { { "terminate", false, No, AllowedYesNo }, { 0, false, 0, 0 } }; return new Message(gatherAttributes(qName, atts, rules)["terminate"] == Yes); } // createContainer }; // class MessageHandler } // namespace XSLT } // namespace Arabica #endif