import lib.AddressTransformation; modeltype ECORE "strict" uses ecore('http://www.eclipse.org/emf/2002/Ecore'); modeltype TEST uses "http://dim.de/test"; transformation PersonTransformationWithDeps(in rawIn : TEST, out rawOut : TEST); main() { rawIn.rootObjects()[Person]->map mapToFemalePerson(); } mapping Person::mapToFemalePerson() : Person { firstName := self.firstName + "in"; lastName := self.lastName + "in"; gender := GenderType::FEMALE; address := self.address.map mapToAddressNew(); }