Despite years of development and a huge financial investment, Jaguar scrapped plans for an all-electric XJ sedan just months before…