boolean-from-string(): true for true (any case) or 1.
boolean-from-string()
true
1
bool boolStr(Object value) { final s = toXPathString(value); return s.toLowerCase() == 'true' || s == '1'; }