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
|
|
|
|
{
|
|
|
|
|
2012-11-04 23:34:40 +01:00
|
|
|
template<class stringT, class adaptorT>
|
2012-11-06 21:21:39 +01:00
|
|
|
class Variable : public Variable_impl<stringT, adaptorT>
|
2007-07-19 19:01:42 +02:00
|
|
|
{
|
|
|
|
public:
|
2012-11-04 23:34:40 +01:00
|
|
|
typedef stringT string_type;
|
|
|
|
typedef adaptorT string_adaptor;
|
|
|
|
|
|
|
|
Variable(const string_type& name,
|
|
|
|
const Arabica::XPath::XPathExpressionPtr<string_type, string_adaptor>& 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() { }
|
|
|
|
|
2012-11-04 23:34:40 +01:00
|
|
|
virtual void execute(const DOM::Node<string_type, string_adaptor>& node, ExecutionContext& context) const
|
2007-07-19 19:01:42 +02:00
|
|
|
{
|
|
|
|
context.declareVariable(node, *this);
|
|
|
|
} // declare
|
|
|
|
}; // Variable
|
|
|
|
|
|
|
|
} // namespace XSLT
|
|
|
|
} // namespace Arabica
|
|
|
|
#endif
|
|
|
|
|