add support for using defaultValue when no doc or value attr is supplied