I recommend using XSLT template generation to create c object files. T4 just allows you to write code in your templates that you don’t need, instead just create an XMl model and use XSLT to convert it to code.
Maybe use such a tool? http://ditchnet.org/xslpalette/
source
share