mirror of
https://github.com/jezhiggins/arabica
synced 2024-12-28 22:23:21 +01:00
37 lines
785 B
C++
37 lines
785 B
C++
#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:
|
|
typedef std::string string_type;
|
|
typedef Arabica::default_string_adaptor<std::string> string_adaptor;
|
|
|
|
Param(const std::string& name,
|
|
const Arabica::XPath::XPathExpressionPtr<std::string>& select,
|
|
const Precedence& precedence) :
|
|
Variable_impl(name, select, precedence)
|
|
{
|
|
} // 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
|
|
|