functions stringValue etc. don't handle null properly
Brought to you by:
alain-couthures
It seems that functions stringValue etc in xsltforms.js do not handle null value properly
At least, it was in stringValue where XSLTForms failed when I tried to obtain <xf:message><xf:output value="event('response-body')"/></xf:message> in xforms-submit-error event. This modification of xsltforms.js (line 8039) helped:
function stringValue(value) {
//[ru.curs
if (value == null)
return "null";
else
//ru.curs]
return typeof value != "object"? "" + value
: (value.length === 0? "" : xmlValue(value[0]));
}
Regards,
Ivan (iponomarev@mail.ru)