Synthesis of 4-substituted chlorophthalazines, dihydrobenzoazepinediones, 2-pyrazolylbenzoic acid, and 2-pyrazolylbenzohydrazide via 3-substituted 3-hydroxyisoindolin-1-ones.