A state appellate court has upheld the City of Gilroy's housing element against a challenge filed by affordable housing advocates. The court ruled that, under the housing element law in effect when Gilroy updated its housing plan in 2002, the city did not have to provide a site-specific inventory and analysis.