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-06 06:38:52 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: Thu, 6 Jun 2002 13:38:51 +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> <3CFE6281.1F07E497@san.rr.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1023370731 24252 134.91.4.34 (6 Jun 2002 13:38:51 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Thu, 6 Jun 2002 13:38:51 +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:25401 Date: 2002-06-06T13:38:51+00:00 List-Id: Darren New wrote: : Actually, it maps nicely to : bla some value blub : which would allow pretty much arbitrary text in the value with minimal : escapage necessary. True. Though line break are not a problem, they will just go away due to normalization (if that is a problem, then o.K.) (I'm saying this because I see many people thinking that attribute values are very restricted, I find this misleading.) :> This is what attributes are for, : : Well, er, not really, but OK. :-) o.K, that was a bit loadmothed (by me), but it depends on the definition of attributes. SGML/XML attributes aren't required to be what some people attribute to attributes*) (where some seem not to be talking of SGML/XML-attributes but about some general notion of attributes.) That is, (see Goldfarb/Prescod Sec 54.6) it is up to the designer of the document type to decide what to put in attributes and what to put in element content. They suggest two non-exhaustive guiding criteria: - attributes cannot contain elements (as you said) - attributes cannot have occurence indicators Therefore, if values for keys - do/don't contain elements..., - occur exactly once..., - can e.g. have but "on" or "off" as values,... (so ) Chose something that meets your purpose. E.g. when working in 3D-space I can't see anything too wrong with an "attribute based" matrix, since its structure is fixed and will stay so: ... ... However, if you insist on a meta-information restriction for attributes, say, can you handle this case but by the introduction of some more element types, which, in XML, might become rather noisy? (Whether the row is the best fit for a eu3D-trans part I don't know) *) And never mind whether or not some (probably young and publishing? :-) computer scientists have superimposed a meta-information model on XML, there is no need to restrict the capabilities of DTDs just because some meta-information orientation can be mapped to XML attributes! :-) -- Georg