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-13 10:43:47 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!newsfeed1.cidera.com!Cidera!cyclone.socal.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!twister.socal.rr.com.POSTED!not-for-mail Message-ID: <3D08D9EE.3B446C2B@san.rr.com> From: Darren New X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Use of XML for config files References: <3CFC5DB2.A21DCF61@cs.tu-berlin.de> <4519e058.0206041129.5b250124@posting.google.com> <4519e058.0206100702.5a4b431a@posting.google.com> <3D0769F7.68F5BD9C@san.rr.com> <4519e058.0206130553.3ee195f1@posting.google.com> <3D08CAF0.846AA176@san.rr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 13 Jun 2002 17:43:46 GMT NNTP-Posting-Host: 66.75.151.160 X-Complaints-To: abuse@rr.com X-Trace: twister.socal.rr.com 1023990226 66.75.151.160 (Thu, 13 Jun 2002 10:43:46 PDT) NNTP-Posting-Date: Thu, 13 Jun 2002 10:43:46 PDT Organization: RoadRunner - West Xref: archiver1.google.com comp.lang.ada:25894 Date: 2002-06-13T17:43:46+00:00 List-Id: Georg Bauhaus wrote: > No I wouldn't, not in all cases. At least I wouldn't where a grammar > allows me to require dependency checked data. I don't think DTDs allow you to say things like certain values must be within certain ranges, etc. If DTDs were that powerful, I'd start to agree with you. > : Of course, a simple example would suffice. > > A simple example (not for number addition in XML, of course) > is that a child element can be required by the DTD > or an attribute value must be present (again required by the > DTD) with a value of either "yes" or "no". Well, yes. But I meant something more complex, since I don't think anyone wants to teach their users XML DTD syntax to explain that this has to be "yes" or "no." For example, you can't say "the value of this field must be a dotted-quad IPv4 address" with a DTD. Even so, anything you describe in a DTD you'll also have to describe in prose documentation, plus I don't think any of the existing Ada XML libraries will validate against a DTD, will they? -- Darren New San Diego, CA, USA (PST). Cryptokeys on demand. ** http://home.san.rr.com/dnew/DNResume.html ** ** http://images.fbrtech.com/dnew/ ** My brain needs a "back" button so I can remember where I left my coffee mug.