I can recommend following books:
- Code Generation in Action by Jack Herrington (lots of Ruby)
- Generative Programming by Krzysztof Czarnecki and Ulrich W. Eisenecker (many ideas explained)
- Framing Software Reuse by Paul G. Bassett (old but has nice ideas)
- Program Generators with XML and Java by J. Craig Cleaveland (heavy on XML front)
And now my question is, what other books or resources about generative programming, model driven software development and software production lines would you recommend? And why?