What are the differences between XSLT and T4 code generation methods?

I just get into the idea of ​​generating code for repetitive coding problems and have seen both of these approaches. I saw the XSLT approach in Apress's Code Generation book on Microsoft.Net and read about the T4 approach regarding what's new in the MVC framework.

What projects are suitable for each method? A quick glance tells me that the T4 is a lighter system, is that true?

Many thanks...

+3
source share
1 answer

Well yes - T4 is a template-based approach that can extract information from different sources - usually from a database (tables or system directories).

T4 VS 2008 - .tt VS2008 VS.

XSLT - XML, XSLT XML, .

XSLT - XSL-.

: T4 VS ( # ), XSLT - / , XML ( HTML PDF XSL-FO).

+7

Source: https://habr.com/ru/post/1702636/


All Articles