Menu

#4 functions stringValue etc. don't handle null properly

open
nobody
None
5
2012-12-21
2010-08-13
Anonymous
No

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)

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.