hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eyon Land <myjaval...@yahoo.com>
Subject Re: HiveMind DTD?
Date Mon, 06 Jun 2005 21:49:43 GMT
I see what you mean...

That's disappointing.

Eyon

--- Hugo Palma <hpalma@digitalis.pt> wrote:

> I think u missunderstood the problem. I'm giving an
> example to be more 
> clear. You have the following in your module xml
> file:
> 
> <contribution configuration-id="some.configuration">
> ......
> </contribution>
> 
> The configuration "some.configuration" has an
> associated schema in some 
> other module. So the problem here is, how do you
> define in a DTD that 
> the element contribution with an attribute
> "configuration-id" with the 
> value "some.configuration" must have some child
> elements ?
> 
> 
> 
> Cheers
> 
> Hugo
> 
> Eyon Land wrote:
> > I'm not an expert at this but I thought even the
> > schema, that is arbitrarily defined, could be used
> by
> > the ant task to modify the dtd such that any
> > contribution would be required to match.
> > 
> > Maybe this is not possible...
> > 
> > I'll see if I can spend some time on this later
> this
> > week...I use NetBeans and would really like to see
> an
> > ant task that recreates a dtd when the schema
> changes.
> >  In my case, NetBeans might need to be told that
> the
> > dtd changed so that it knows to pickup the new
> one.
> > 
> > Eyon
> >   
> > 
> > --- Knut Wannheden <knut.wannheden@gmail.com>
> wrote:
> > 
> > 
> >>This occured to me earlier today, but I thought I
> >>maybe don't know
> >>enough about DTDs...
> >>
> >>Yet I think an XML Schema or RelaxNG grammar to
> >>validate (and help
> >>edit) the non dynamic parts would be quite helpful
> >>already. They can
> >>be written to allow arbitrary elements inside
> >><contribution> and
> >><invoke-factory> elements.
> >>
> >>--knut
> >>
> >>On 6/6/05, Hugo Palma <hpalma@digitalis.pt> wrote:
> >>
> >>>After some thinking i now have no ideia how this
> >>
> >>could be donne. I don't
> >>
> >>>think it's even possible. The reason for this is
> >>
> >>that the selection of
> >>
> >>>the schema to use is determined be an elements
> >>
> >>attribute value, and
> >>
> >>>there's no way a dtd can use that information to
> >>
> >>validate de xml.
> >>
> >>>Am i missing something here ?
> >>>
> >>>
> >>>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:hpalma@digitalis.pt]
> >>>>Sent: Monday, June 06, 2005 6:08 AM
> >>>>To: hivemind-user@jakarta.apache.org
> >>>>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 <hpalma@digitalis.pt> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>I think the application would have to generate
> >>
> >>the
> 
=== message truncated ===

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Mime
View raw message