Chapter 14. Xpand Template Language

From model instances, it’s common to generate code, text files, reports, and so on. Query/View/Transformation Operational Mapping Language (QVT OML) provides our language for Model-to-Model Transformation (M2M), and we turn to Xpand to provide for Model-to-Text Transformation (M2T). Alternative choices exist within the M2T project, namely Java Emitter Templates (JET) and the new Model to Text Language (MTL) component.

JET is the default M2T technology that EMF itself uses, but other projects within Eclipse have found success and discovered advantages to using Xpand. JET borrows heavily from Java Server Pages (JSP), but Xpand has a significantly different syntax to offer those who might not be fond of JSP. ...

Get Eclipse Modeling Project: A Domain-Specific Language (DSL) Toolkit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.