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,1ea92c0e5255811d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-06 14:41:09 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Document Engineering was RE: Way OT: Adam Smith and Software Markets Date: Thu, 6 Mar 2003 22:41:06 +0000 (UTC) Organization: GMUGHDU Sender: Georg Bauhaus Message-ID: References: NNTP-Posting-Host: d2-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1046990466 3328 134.91.1.15 (6 Mar 2003 22:41:06 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Thu, 6 Mar 2003 22:41:06 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/831)) Xref: archiver1.google.com comp.lang.ada:34998 Date: 2003-03-06T22:41:06+00:00 List-Id: Robert C. Leif wrote: : Another way of stating this is Document Engineering should be a branch of : Software Engineering. I might note that a common editor for text and source : code with bidirectional hyperlinks would be of use for software development. : This capability is included in the XML specifications. A related issue that I think might be interesting for Ada programmers is the relationship between XML Schema datatypes and Ada's types and constraints. You can have the rough equivalent of Generic_Bounded_length(max => 32)'s Bounded_string type subtype Min_to_max is Integer range 100..100000; and more, an overview is at http://www.xml.com/pub/a/2000/11/29/schemas/dataref.html But, when does it help? Say you wanted a constrained datatype for paragraph width, that can be easily turned into an Ada subtype. However, a paragraph is always inside a frame, which in turn has a width that may vary. What is the maxExclusive restriction for paragraph width? You can't really give one without referring to the frame's maxExclusive. How do you do that? Does it make sense, both inside the Schema and at the interface between the Schema and your Ada application? After all, constraints in Ada can be dynamic. Likewise you can specify patterns that values (XML data) will have to match. But is this enough? Is pattern machting enough or do we need parsing anyway, for 'Valid input? Examples include the xs:date restriction, which might not be enough to match the real world date conventions--unless you can force the data producers to write dates in the required format... So it might be better to think twice whether the situation is such that Schemata will solve the data format issues best, or whether plain old DTDs provide much needed flexibility. Perhaps the ATTLIST can be supplemented with data representations information when needed. -- Georg ---------------------------------------------------------------- Georg Bauhaus bauhaus@futureapps.de Future Apps GmbH phone: +49 203 306 1560