Cyclooctanoid ring systems from mixed acetals via heteroatom-assisted [1,2]-shift of oxonium ylides.