mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-04 23:01:54 +01:00
34 lines
674 B
C++
34 lines
674 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:
|
||
|
Param(const std::string& namespace_uri,
|
||
|
const std::string& name,
|
||
|
Arabica::XPath::XPathExpressionPtr<std::string> select) :
|
||
|
Variable_impl(namespace_uri, name, select)
|
||
|
{
|
||
|
} // 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
|
||
|
|