XSL Transformation of CSDL into HTML
The attached XSL script neatly renders an Entity Framework CSDL file into HTML.
Below is the NorthwindEF model that we’ve been using for our samples, rendered using that XSL script:
Northwind
Entity Sets
Entity Types
Complex Types
Associations
Entity Sets
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Entity Types
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CurrentEmployee
PreviousEmployee
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
Complex Types
|
|
|
|
|
|
|
|
|
|
Associations
|
| |
|
|
| ||
|
| |
|
|
| ||
|
| |
|
|
| ||
|
| |
|
|
| ||
|
| |
|
|
| ||
|
| |
|
|
| ||
|
| |
|
|