Where were textile factories located