aboutsummaryrefslogtreecommitdiff
path: root/src/support/type/xobject_value.cc
blob: cdeb9c6e9e770e88542723c6388b1d3c3473ab56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "xobject_value.h"

#include <boost/algorithm/string.hpp>

#include <string>

#include "support/xalan_string.h"

namespace InputXSLT {

namespace XObjectValue {

template <>
std::string get<std::string>(const xalan::XObjectPtr& ptr) {
	return boost::trim_copy(toString(ptr->str()));
}

template <>
xalan::XObjectPtr get<xalan::XObjectPtr>(const xalan::XObjectPtr& ptr) {
	return ptr;
}

}

}