Creating xml:ids when missing. Includes test.