Project

Profile

Help

Revision 1117bc69

Added by O'Neil Delpratt almost 2 years ago

Saxon/C Development - Multithreading feature

View differences:

latest9.9/hec/Saxon.C.API/XsltProcessor.cpp
119 119
void XsltProcessor::setParameter(const char* name, XdmValue * value) {
120 120
	if(value != NULL && name != NULL){
121 121
		value->incrementRefCount();
122
		int s = parameter.size();
122
		int s = parameters.size();
123 123
		std::String skey = "param:"+std::string(name);
124 124
		parameters[skey] = value;
125
		if(s == parameter.size()) {
125
		if(s == parameters.size()) {
126 126
            std::map<std::string, XdmValue*>::iterator it;
127 127
            it = parameters.find(skey);
128 128
            if (it != parameters.end()) {
......
156 156

  
157 157
void XsltProcessor::setProperty(const char* name, const char* value) {	
158 158
	if(name != NULL) {
159
	    int s = parameter.size();
159
	    int s = properties.size();
160 160
		std:string skey = std::string(name);
161 161
		properties.insert(std::pair<std::string, std::string>(skey, std::string((value == NULL ? "" : value))));
162 162

  
163
		if(s == parameter.size()) {
163
		if(s == properties.size()) {
164 164
            std::map<std::string, std::string>::iterator it;
165
            it = parameters.find(skey);
166
            if (it != parameters.end()) {
165
            it = properties.find(skey);
166
            if (it != properties.end()) {
167 167
                properties.erase(skey);
168 168
                properties[skey] = std::string((value == NULL ? "" : value));
169 169
            }

Also available in: Unified diff