Substrate Controlled Synthesis of Benzisoxazole and Benzisothiazole Derivatives via PhI(OAc)2-Mediated Oxidation Followed by Intramolecular Oxidative O-N/S-N Bond Formation.