Can I use XText for a DSL involving an XML file type?
Posted
by Chris
on Stack Overflow
See other posts from Stack Overflow
or by Chris
Published on 2010-03-09T09:05:25Z
Indexed on
2010/04/18
8:03 UTC
Read the original article
Hit count: 422
I have defined a small DSL that is mostly written in the form of different types of XML files in conjuction with some property files. This works very well but I wish to create an Eclipse Editor to make editing these files easier for beginners (I already have a working parser).
The main XML file can reference some items from the .properties files and vice-versa. THe main xml file can also reference other XML files. Certain options should only be available in the main xml file based on the contents of the .properties files and based on some osgi plugins that can be added to the DSL project (the syntax is dynamic depending on context). The structure of the language is fixed but the options available in each attribute or the choice of attributes themselves changes depending on metadata contained in plugin .jar files.
Questions:
Does XText support dynamic syntax (validation changes depending on external factors)?
Does XText support XML files / .properties files?
Thank you very much for your help in advance.
© Stack Overflow or respective owner