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