adding handling to preserve @class on synopsis if it has @role attribute