|Grammar in XML and attribute completion [message #719868]
||Mon, 29 August 2011 09:13
| Roded Bahat
Registered: August 2011
I'm quite new to EMF and xText besides the reading and experimenting done for the last few days. I figured that before starting implementing anything, It would be better to ask the collective for some advice:
We use propriety XML files for configuration and as DSLs (more on that in a bit). My final goal is to allow visually editing of those XML files via an Eclipse plugin and not have the users fuddle about with the XML itself.
This would've been easy with simple XMLs but I have the following aspirations:
1) The configuration files rely on other XML files for some definitions for which I'd like to allow auto-completion. (For example, if a base XML has an <output name="x"> tag, I'd like to be able to auto-complete the name attribute of an <input> tag in a different XML to that of the same name defined in the base XML).
2) We use XMLs as DSLs. For example:
<statement>myDslVariable = myDslMethod(arg)</statement>
I'd like to be able to auto-complete & syntax color our grammar inside XML those tags.
I'd really appreciate any inputs or points in the right direction regarding how to accomplish the above.
[Updated on: Mon, 29 August 2011 09:23]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.06301 seconds