I've actually started doing some code for this. I'll keep posting my
findings and ideas.
Cheers
hugo
Hugo Palma wrote:
In that case the generation will work also because the ant task(or
whatever it will be) will not validate against the dtd for generation
purposes. So all you have to do is regenerate de dtd and the validation
error in the IDE will be gonne.
Cheers
Hugo
James Carman wrote:
Are you suggesting that the XML actually have a DOCTYPE statement at
the top
so that the IDEs know which DTD to use? Then, what happens if you make a
change to the XML document which requires that the DTD change in order
for
the XML document to be valid? When you try to parse it (if you've
turned on
validation), you'll get an error and will not be able to process it in
order
to generate the new DTD (oh no, I've gone cross-eyed). I guess it's
simple
enough to turn off validation on the parser or Digester. Anyway, I'm
just
thinking out loud here trying to understand exactly what it is that
you guys
want. Does this sound right?
-----Original Message-----
From: Hugo Palma [mailto:[EMAIL PROTECTED] Sent: Monday, June 06,
2005 6:08 AM
To: [email protected]
Subject: Re: HiveMind DTD?
It could be implemented as an ant task yes. I think that's a great idea.
Not sure about including it with the hivemind build though. This
sounds more like an utility thing than a framework thing. Maybe it
could be included in hivemind utilities
project(http://hivetranse.sourceforge.net/index.html).
But i guess first things first. Is anyone available for implementing
this ? I have my hands full with other projects for my company so i
won't be able to dedicate much time to this.
Cheers
Hugo
Eyon Land wrote:
Would it be possible to simply create an ant script
that generates a dtd dynamically?
If so, it would be easy to get NetBeans to build the
dtd each time you built your application.
If we made an ant script, we could just distribute it
with the regular HiveMind build right?
Eyon
--- Hugo Palma <[EMAIL PROTECTED]> wrote:
I think the application would have to generate the
dtd from all hivemodule.xml in the classpath, then the generated
dtd could be used in the IDE for auto-completing and such.
It would be great to implement such an application.
I think it would very much ease the development of hivemind based
applications.
Maybe a project could be created on java.net or
sourceforge for this. I'm available for doing some contribution.
Cheers
Hugo
Knut Wannheden wrote:
On 6/3/05, Domsch, Christian
<[EMAIL PROTECTED]> wrote:
Wouldnt it be possible to write a validating
editor that reads all schemas
of all hivemodule.xml he can find and then
validates everything based on the
basic structure of the xml and all schemas?
That would be possible. In a way similar to the
<antstructure> task in
Ant which generates a DTD.
At one point I had an XML Schema and a RelaxNG
grammar for HiveMind.
They would validate all the elements and
attributes defined by
HiveMind. All custom schemas would be ignored. I
still found it to be
useful.
--knut
---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]