From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a26758eec3c2e1ad X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-05 07:52:28 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Use of XML for config files Date: Wed, 5 Jun 2002 14:52:28 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <3CFC5DB2.A21DCF61@cs.tu-berlin.de> <4519e058.0206041129.5b250124@posting.google.com> <3CFDBB4D.29DAADEF@cs.tu-berlin.de> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1023288748 10777 134.91.4.34 (5 Jun 2002 14:52:28 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Wed, 5 Jun 2002 14:52:28 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.ada:25361 Date: 2002-06-05T14:52:28+00:00 List-Id: Preben Randhol wrote: : On Wed, 5 Jun 2002 10:24:12 +0000 (UTC), Georg Bauhaus wrote: :> : : Why do you use meta-data through arguments. Why not: meta-data? arguments? I'm not sure I understand. : : : master : all : 1) This loses type information on allowable key data ("master" in this case), and as the discussion has shown, it might be desirable to restrict keys to a few sensible characters, that is NMTOKEN. 2) The idea is to use attributes as properties. If you have foo := bla some value blub this maps nicely to This is what attributes are for, there is one thing (a setting, if someone finds a better word, that would be nice, I'm not English) which is a key-value mapping. It is concise, and it circumvents the necessity to add key- and value-children to the content model of setting: If you think of this as nodes in the grove, there is only one node concerning one adjustable thing in an application. The node has the setting for one application-thing keyed "master" in this case, using attributes present in this node. Otherwise you would have three element nodes in a subtree, where the top node (setting) isn't used, except as a container for two other child nodes, key and value, which have the key name in the first child and the value in the second child. The element content of the second child is to be used as the value of the setting keyed by the element content of the first child. I find the attribute way a lot more pleasant. -- Georg ---