2007-07-19 17:01:42 +00:00
|
|
|
#ifndef ARABICA_XSLT_VARIABLE_HPP
|
|
|
|
#define ARABICA_XSLT_VARIABLE_HPP
|
|
|
|
|
|
|
|
#include "xslt_variable_impl.hpp"
|
|
|
|
|
|
|
|
namespace Arabica
|
|
|
|
{
|
|
|
|
namespace XSLT
|
|
|
|
{
|
|
|
|
|
2012-11-04 22:34:40 +00:00
|
|
|
template<class stringT, class adaptorT>
|
2007-07-19 17:01:42 +00:00
|
|
|
class Variable : public Variable_impl
|
|
|
|
{
|
|
|
|
public:
|
2012-11-04 22:34:40 +00: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 17:26:07 +00:00
|
|
|
const Precedence precedence) :
|
2009-02-24 12:21:35 +00:00
|
|
|
Variable_impl(name, select, precedence)
|
2007-07-19 17:01:42 +00:00
|
|
|
{
|
|
|
|
} // Variable
|
|
|
|
|
|
|
|
virtual ~Variable() { }
|
|
|
|
|
2012-11-04 22:34:40 +00:00
|
|
|
virtual void execute(const DOM::Node<string_type, string_adaptor>& node, ExecutionContext& context) const
|
2007-07-19 17:01:42 +00:00
|
|
|
{
|
|
|
|
context.declareVariable(node, *this);
|
|
|
|
} // declare
|
|
|
|
}; // Variable
|
|
|
|
|
|
|
|
} // namespace XSLT
|
|
|
|
} // namespace Arabica
|
|
|
|
#endif
|
|
|
|
|