arabica/include/XSLT/impl/xslt_variable.hpp

37 lines
833 B
C++
Raw Normal View History

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>
2007-07-19 19:01:42 +02:00
class Variable : public Variable_impl
{
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,
const Precedence precedence) :
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