From: <Dan...@dl...> - 2009-10-20 10:14:36
|
Hello Björn, being a newbie is not an excuse, rather a reason for participating; I suppose those who work on SUMO for years can use any configuration format. The question is which format is easy to understand and powerful enough for "normal" users. Sincerely, Daniel > -----Ursprüngliche Nachricht----- > Von: Björn Hendriks [mailto:hen...@ib...] > Gesendet: Dienstag, 20. Oktober 2009 12:01 > An: sum...@li... > Betreff: Re: [sumo-devel] Configuration file format > > On Monday 19 October 2009 19:22:00 wrote Christoph Sommer: > > Michael Behrisch wrote: > > > which format is suited best: > > > 1. The old character data based one: > > > <section><key>value</key></section> > > > 2. The new one based entirely on attributes: > > > <section key="value"/> > > > 3. An intermediate one where the key is still an element but the > > > value is in an attribute: > > > <section><key value="value"/></section> > > I also favor no. 3 because using a complex simulator is > enough error prone so every possibility to do automatic > checking should be usable. And I do not favor no. 2 because > for me as a SUMO newbie the commented configuration template > is rather helpful (thanks for that) but the unfortunately > misplaced comments confused the syntax highlighting of my > text editor (which in fact made me look into the XML spec and > then post the bug report which probably initiated this > discussion) and might cause bigger problems in real XML- editors. > > On the other hand don't count my vote too much because as a > newbie I don't know the requirements of experienced users. > > > <configuration> > > > <processing> > > <no-turnarounds/> > > <no-internal-links/> > > <disable-normalize-node-positions/> > > </processing> > > <report> > > <verbose/> > > </report> > > > </configuration> > > To be as flexibla as possible I would suggest for boolean > options to allow their setting also by an attribute like in > no. 2 such that > > <verbose/> > <verbose v="true"/> > > are equivalent and > > [...] > <verbose v="false"/> > > are also equivalent. The latter also allows to comment > boolean options which are false by default. > > Cheers, > Björn > > > -------------------------------------------------------------- > ---------------- > Come build with us! The BlackBerry(R) Developer Conference in > SF, CA is the only developer event you need to attend this > year. Jumpstart your developing skills, take BlackBerry > mobile applications to market and stay ahead of the curve. > Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > sumo-devel mailing list > sum...@li... > https://lists.sourceforge.net/lists/listinfo/sumo-devel > |