I'm new to mps and i'm struggeling a bit with the generator. For a project for my university and company i want to create a language which creates xml GUI files.
so first a little bit about the structure:
- the root concept 'ProtokollPart' can have several 'Component' concepts (not rootable, abstract)
- the 'Frage' Concept extends the abstract concept 'Component'
- depending on a boolean ('buchstabenNum') in 'ProtokollPart' the concept 'frage' should be generating one (if false) or two (if true) label.
My first problem is that a templat can generate only one xml-element, but i need two
the second problem is, that i don't know how to get the boolean from the parent. (Only 'ProtokollPart' can be the parent of 'Frage')
here are some pictures from my current code:
this is the file which should generate the 'ProtokollPart'
I'm thankful for any help and suggestions :)