Complex sentence: The church of St Mary's dates to around the year AD 900 and according to a local legend it replaced an earlier woodsman's shrine.
Split into simpler sentences: The church of St Mary's dates from around AD 900. According to a local legend it replaced an earlier woodsman's shrine.