Fixed the transformation to be valid against the XSD.