mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-08 05:24:46 +01:00
37 lines
738 B
C++
37 lines
738 B
C++
|
#ifndef ARABICA_XSLT_CALL_TEMPLATE_HPP
|
||
|
#define ARABICA_XSLT_CALL_TEMPLATE_HPP
|
||
|
|
||
|
#include "xslt_stylesheet.hpp"
|
||
|
#include "xslt_with_param.hpp"
|
||
|
|
||
|
namespace Arabica
|
||
|
{
|
||
|
namespace XSLT
|
||
|
{
|
||
|
|
||
|
class CallTemplate : public Item,
|
||
|
public WithParamable
|
||
|
{
|
||
|
public:
|
||
|
CallTemplate(const std::string& name) :
|
||
|
name_(name)
|
||
|
{
|
||
|
} // CallTemplate
|
||
|
|
||
|
virtual void execute(const DOM::Node<std::string>& node, ExecutionContext& context) const
|
||
|
{
|
||
|
passParams(node, context);
|
||
|
|
||
|
context.stylesheet().callTemplate(name_, node, context);
|
||
|
} // execute
|
||
|
|
||
|
private:
|
||
|
const std::string name_;
|
||
|
}; // class CallTemplate
|
||
|
|
||
|
} // namespace XSLT
|
||
|
} // namespace Arabica
|
||
|
|
||
|
#endif // ARABICA_XSLT_CALL_TEMPLATE_HPP
|
||
|
|