kosher food , matzot , religious weddings or funerals , the training of rabbis , the education of children , and the production of religious literature were all either illegal or virtually impossible .