arabica/include/XSLT/impl/xslt_param.hpp

34 lines
673 B
C++
Raw Normal View History

2007-07-19 19:01:42 +02:00
#ifndef ARABICA_XSLT_PARAM_HPP
#define ARABICA_XSLT_PARAM_HPP
#include "xslt_variable_impl.hpp"
namespace Arabica
{
namespace XSLT
{
class Param : public Variable_impl
{
public:
Param(const std::string& name,
2009-08-18 21:42:37 +02:00
const Arabica::XPath::XPathExpressionPtr<std::string>& select,
const Precedence& precedence) :
Variable_impl(name, select, precedence)
2007-07-19 19:01:42 +02:00
{
} // Param
virtual ~Param() { }
protected:
virtual void execute(const DOM::Node<std::string>& node, ExecutionContext& context) const
{
context.declareParam(node, *this);
} // declare
}; // Param
} // namespace XSLT
} // namespace Arabica
#endif