not sure if this is possible without having to go through several passes, but I\'ll ask anyway (my XSL is a little rusty)
I have an XML document, which contains node
Just for fun, other approach (level by level) and ussing keys:
};
Output:
struct STRUCT_C { FIELD_E e; FIELD_F f; FIELD_G g; }; struct STRUCT_B { STRUCT_C c; FIELD_E e; }; struct STRUCT_A { STRUCT_B b; STRUCT_C c; FIELD_D d; };