Currently I don't know if it should be better to implement an Eclipse or NetBeans plugin, since I like them both.
Anyway the nice point would be to have only some contributions into included files based on a subset of schema. This at first thought could be possible adding a service that accepts a list of schemas on each included file.
The plugin module coud then process the xml file end extract the service.
Or a smarte solution would be to create a global service and invent a way to associeate the module-id with accepted schemas (maybe a map, would be sufficient)
On 2/24/06, Hugo Palma <[EMAIL PROTECTED]> wrote:
I actually have something like that in the roadmap of the Tapestry plugin for IntelliJ i'm implementing. Of couse this component would be indepedent of Tapestry and would work any any other kind of project.
The bad news is that i won't have time in the near future to implement this as i'll be implement other more Tapestry specific features. But if anyone wants to implement such editor i can help with all the free time i can get.
Cheers
HugoOn 24/02/06, Domsch, Christian < [EMAIL PROTECTED]> wrote:Hi,I proposed this some time ago: It is possible to write an editor (or an ide plugin) that reads all hivemodule.xml (like the registrybuilder does) and the parse all configuration points and there corresponding schema definitions. And from theses schemas enforce the correct editing of the contributions. Its all there, you just have to write that "little" editor :-)Btw, this would be a great improvment!Greetings,Christian.
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 24. Februar 2006 14:07
An: '[email protected]'
Betreff: RE: providin a dtd to hivemind xml filesdepends. The point is, the structure of a <contribution> element depends on it's configuration-id attribute. That's not possible to enforce in either dtd or schema afaik.But if you have a sub-module that contributes to only one schema that'll not be a problem.-----Original Message-----Hi!
From: Andrea Chiumenti [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 24, 2006 1:58 PM
To: [email protected]
Subject: providin a dtd to hivemind xml files
To help my customers to configure services I'd like to drive them with dtd validation. So for example
for file auth.xml included into my hivemodule.xml i'd like to provide an auth.dtd file to validate the xml correctness.
Is it possible ?
Thanks in advance,
kiuma
