Handled nestled sref-elements in a more general way