arabica/include/XSLT/impl/xslt_param.hpp

39 lines
837 B
C++
Raw Normal View History

2007-07-19 17:01:42 +00:00
#ifndef ARABICA_XSLT_PARAM_HPP
#define ARABICA_XSLT_PARAM_HPP
#include "xslt_variable_impl.hpp"
namespace Arabica
{
namespace XSLT
{
2012-11-06 08:29:42 +00:00
template<class stringT, class adaptorT>
2012-11-06 20:21:39 +00:00
class Param : public Variable_impl<stringT, adaptorT>
2007-07-19 17:01:42 +00:00
{
public:
2012-11-06 08:29:42 +00:00
typedef stringT string_type;
typedef adaptorT string_adaptor;
2012-11-04 22:34:40 +00:00
2012-11-06 08:29:42 +00:00
Param(const string_type& name,
const Arabica::XPath::XPathExpressionPtr<string_type, string_adaptor>& select,
const Precedence& precedence) :
Variable_impl(name, select, precedence)
2007-07-19 17:01:42 +00:00
{
} // Param
virtual ~Param() { }
protected:
2012-11-06 08:29:42 +00:00
virtual void execute(const DOM::Node<string_type, string_adaptor>& node, ExecutionContext& context) const
2007-07-19 17:01:42 +00:00
{
context.declareParam(node, *this);
} // declare
}; // Param
2007-07-19 17:01:42 +00:00
} // namespace XSLT
} // namespace Arabica
#endif