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
|
|
|
|
{
|
|
|
|
|
|
|
|
class Param : public Variable_impl
|
|
|
|
{
|
|
|
|
public:
|
2009-02-24 12:21:35 +00:00
|
|
|
Param(const std::string& name,
|
2009-08-18 20:42:37 +01:00
|
|
|
const Arabica::XPath::XPathExpressionPtr<std::string>& select,
|
2008-11-19 17:26:07 +00:00
|
|
|
const Precedence& precedence) :
|
2009-02-24 12:21:35 +00:00
|
|
|
Variable_impl(name, select, precedence)
|
2007-07-19 17:01:42 +00:00
|
|
|
{
|
|
|
|
} // Param
|
|
|
|
|
|
|
|
virtual ~Param() { }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void execute(const DOM::Node<std::string>& node, ExecutionContext& context) const
|
|
|
|
{
|
|
|
|
context.declareParam(node, *this);
|
|
|
|
} // declare
|
|
|
|
}; // Param
|
|
|
|
|
2009-11-23 21:00:23 +00:00
|
|
|
|
2007-07-19 17:01:42 +00:00
|
|
|
} // namespace XSLT
|
|
|
|
} // namespace Arabica
|
|
|
|
#endif
|
|
|
|
|