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-Thread: 103376,deac256a05c84a59 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Nick Roberts Newsgroups: comp.lang.ada Subject: Re: DOM and SAX parsing in Ada Date: Sat, 29 Jan 2005 16:54:55 +0000 Message-ID: References: <41900010.D28DD400@boeing.com> <9CWjd.17305$5K2.1356@attbi_s03> <1106223415.857525.176640@c13g2000cwb.googlegroups.com> <41F4DB6F.4090909@mailinator.com> <35nh12F4oe4caU1@individual.net> <35t2u6F4qc335U1@individual.net> Content-Type: text/plain; charset=us-ascii X-Trace: individual.net 2R7EQOftEwolIFD23NqhuAS2Xpz8ZZx9fvJT6D45qeOYN15+U= X-Orig-Path: not-for-mail User-Agent: Gemini/1.45d (Qt/3.3.2) (Windows-XP) Xref: g2news1.google.com comp.lang.ada:8070 Date: 2005-01-29T16:54:55+00:00 List-Id: Simon Wright wrote: > > Regarding objective (1), I need a package that can read a DTD (a very > > big and hairy one, in fact) and expand the general entities declared in > > it. > > I'm not completely up to speed on this, but aren't DTDs a bit old-hat? (of > course there are many varieties of schema, I suppose old-hat-but-standard > is better than was-current-five-years-back) You're dead right, Simon, but OASIS uses a DTD (a whopper) for the validation of DocBook/XML documents (see http://docbook.sourceforge.net/), presumably because there are still more tools out there, currently, which support DTD validation (only) rather than XML Schema validation. Perhaps also of significance is that the DTD is used to declare appropriate default values for various attributes and all the many DocBook character entities. There are certain useful things that can be done by DTD (internal or external) which, to my knowledge, cannot be done any other way. For example, I have a need to break up a big source document into many files, and then include them in a (logically single) DocBook document as entities. I suspect that a lot of other people will need DTD support (if not actual validation) for a while to come, for various reasons. It probably doesn't hurt, if an XML processor supports DTDs at all, for it to validate. (It /must/ also support standalone documents with no DTD!) -- Nick Roberts