Cheers Hugo Stanczak Group wrote:
I was thinking a lot simpler. I was just saying have a dtd to help auto complete for elements specific to HiveMind. I didn't really care about the custom one's I set. Have it just show all the element types and attributes in each one. Hugo Palma 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> wrote:After some thinking i now have no ideia how thiscould be donne. I don'tthink it's even possible. The reason for this isthat the selection ofthe schema to use is determined be an elementsattribute value, andthere's no way a dtd can use that information tovalidate de xml.Am i missing something here ? Cheers Hugo James Carman wrote:Are you suggesting that the XML actually have aDOCTYPE statement at the topso that the IDEs know which DTD to use? Then,what happens if you make achange to the XML document which requires thatthe DTD change in order forthe XML document to be valid? When you try toparse it (if you've turned onvalidation), you'll get an error and will not beable to process it in orderto generate the new DTD (oh no, I've gonecross-eyed). I guess it's simpleenough to turn off validation on the parser orDigester. Anyway, I'm justthinking out loud here trying to understandexactly what it is that you guyswant. 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. Ithink that's a great idea.Not sure about including it with the hivemindbuild though. This soundsmore like an utility thing than a frameworkthing. Maybe it could beincluded in hivemind utilitiesproject(http://hivetranse.sourceforge.net/index.html).But i guess first things first. Is anyoneavailable for implementingthis ? I have my hands full with other projectsfor my company so iwon't be able to dedicate much time to this. Cheers Hugo Eyon Land wrote:Would it be possible to simply create an antscriptthat generates a dtd dynamically? If so, it would be easy to get NetBeans to buildthedtd each time you built your application. If we made an ant script, we could justdistribute itwith the regular HiveMind build right? Eyon --- Hugo Palma <[EMAIL PROTECTED]> wrote:I think the application would have to generatethedtd from all hivemodule.xml in the classpath, then thegenerateddtd could be used in the IDE for auto-completing and such. It would be great to implement such anapplication.I think it would very much ease the development of hivemindbasedapplications. 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 validatingeditor that reads all schemasof all hivemodule.xml he can find and thenvalidates everything based on thebasic structure of the xml and all schemas?That would be possible. In a way similar tothe<antstructure> task inAnt which generates a DTD. At one point I had an XML Schema and a RelaxNGgrammar for HiveMind.They would validate all the elements andattributes defined byHiveMind. All custom schemas would be ignored.Istill found it to beuseful. --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 spamprotection aroundhttp://mail.yahoo.com---------------------------------------------------------------------To unsubscribe, e-mail:[EMAIL PROTECTED]For additional commands, e-mail:[EMAIL PROTECTED]=== message truncated ===__________________________________ Discover Yahoo! Have fun onlinewith music videos, cool games, IM and more. Check it out! http://discover.yahoo.com/online.html--------------------------------------------------------------------- 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]
