Verify element references in alternative transformations.

Signed-off-by: Etienne M. Gagnon <egagnon@j-meg.com>