This page refers several "model-2-text"-transformation sample projects.
They have been developed with the Eclipse Modeling Workbench (Version Ganymede/E3.4)
and with one of it's M2T Transformation frameworks
JET2 - Java Emitter Templates from the Eclipse Modeling Framework
MTL - Acceleo MTL 0.8.0, based on the OMG's MOF M2T Template Language
Xpand - OAW Xpand from the openArchitectureWare framework 4.3.x