Re: Ada Component Registry proposal

From: Robert C. Leif (rleif_at_rleif.com)
Date: 10/23/03


Date: Thu, 23 Oct 2003 09:16:30 -0700
To: <comp.lang.ada@ada-france.org>, <rieachus@comcast.net>


    
    Why are you using a DTD, which is the antithesis of Ada? A schema which
is the semantic equivalent (translation) of a collection of Ada types would
be far more appropriate.
    Bob Leif
    Robert C. Leif, Ph.D.
    Email rleif@rleif.com
    ------------------------------------------------
    Robert I. Eachus Wrote:
    
    Don't worry about it. I said that I thought that the first version of
    the XML document was not something I would be comfortable posting, but I

    would send copies to anyone who wanted to review it. Stephane Richard
    was willing to do so. Unless there are significant changes, or more
    people who want to take a shot at the current XML state, I will probably

    post version 0.2 to comp.lang.ada tomorrow. Another potential delay is
    that I am probably going to write an XML to HTML converter this weekend,

    so you can look at the HTML to make comments.
    
    No intent to exclude anyone, but XML is still not all that common a
    language, and I felt the intersection of those who knew XML well enough
    to comment, and were also interested in the registry project would be
    pretty small. Hmmm. Actually, why not? Here is the current XML
    DOCTYPE, and the start of the registry declaration. If you want a
    snapshot of the whole thing, send e-mail. But, please, only if you are
    willing to read it and comment.:
    
    <?xml version="1.0" encoding="UTF-8" standalone=yes ?>
    <!DOCTYPE Ada_Component_Registry [
    <!-- Version 0.2 Doctype Copyright 2003 by Robert I. Eachus, copying
    allowed, all other rights reserved for now. -->
       <!ELEMENT Registry (Author*, Project+, Entry+) >
       <!ATTLIST Registry
           Name CDATA #REQUIRED
           Version CDATA #REQUIRED
           Website CDATA #IMPLIED
           Copyright CDATA #REQUIRED
>
       <!ELEMENT Project (Author*, Requires*, Supports*, Description?)
       <!ATTLIST Project
           Name CDATA #REQUIRED
           Version CDATA #IMPLIED
           Website CDATA #IMPLIED
           Bug_Reports CDATA #REQUIRED
           Copyright CDATA #REQUIRED
>
       <!ELEMENT Entry (Author+, Description?, Requires*, Supports*,
    Contents?)
       <!ATTLIST Entry
           Name CDATA #REQUIRED
           Project CDATA #REQUIRED
           Version CDATA #IMPLIED
           Source CDATA #IMPLIED
           Copyright CDATA #IMPLIED
>
       <!ELEMENT Author>
       <!ATTLIST Author
           Name CDATA #REQUIRED
           Email CDATA #IMPLIED
           Telephone CDATA #IMPLIED
           Company CDATA #IMPLIED
           Address CDATA #IMPLIED
>
       <!ELEMENT Compiler >
       <!ATTLIST Compiler
                 Name CDATA #REQUIRED
                 Version CDATA #IMPLIED
>
       <!ELEMENT Contents (#PCDATA )>
       <!ELEMENT Database>
       <!ATTLIST Database
                 Name CDATA #REQUIRED
                 Version CDATA #IMPLIED
>
       <!ELEMENT Date (((Month, Day?)?, Year)|#PCDATA)>
       <!ELEMENT Description (#PCDATA )>
       <!ELEMENT Full_Name (#PCDATA )>
       <!ELEMENT Language
       <!ATTLIST Language
                 Version (Ada80 | Ada83 | Ada95 | Ada2000 | Ada0X) "Ada95"
       <!ELEMENT OS>
       <!ATTLIST OS
                 Name CDATA #REQUIRED
                 Version CDATA #IMPLIED
>
       <!ELEMENT Project_Name (#PCDATA ) >
       <!ELEMENT Requires (Project_Name|Compiler|OS|Hardware)+ >
       <!ELEMENT Supports (Language_Version|Compiler|OS|Hardware)+ >
       <!ELEMENT Root_Name (#PCDATA )>
       <!ELEMENT URL (#PCDATA ) >
       <!ELEMENT Version (#PCDATA)>
       <!ATTLIST Version Date CDATA >
       <!ELEMENT Website (#PCDATA) >
    ]>
    
       <Registry Name="Ada Component Registry"
                 Version="0.2"
                 Copyright="Copyright 2003 by Robert I. Eachus, copying
    allowed, all other rights reserved for now."
>
    
    --
                                                 Robert I. Eachus
    
    "Quality is the Buddha. Quality is scientific reality. Quality is the
    goal of Art. It remains to work these concepts into a practical,
    down-to-earth context, and for this there is nothing more practical or
    down-to-earth than what I have been talking about all along...the repair

    of an old motorcycle." -- from Zen and the Art of Motorcycle
    Maintenance by Robert Pirsig
    
    
    
    



Relevant Pages

  • Re: Ada Component Registry proposal
    ... the XML document was not something I would be comfortable posting, ... <!-- Version 0.2 Doctype Copyright 2003 by Robert I. Eachus, ... <!ELEMENT Description (#PCDATA)> ... Quality is scientific reality. ...
    (comp.lang.ada)
  • Re: XML + ASP
    ... Robert J Egan wrote: ... The form returns xml ... > information saved to my server results in the xml data being ...
    (microsoft.public.inetserver.asp.general)
  • Re: How to implement simple DB persistence
    ... I personally hate it. ... I would love to use my own timing ... can probably get by without any XML. ... That is correct, Robert. ...
    (comp.lang.java.programmer)
  • Re: Data table text I/O package?
    ... Dmitry A. Kazakov wrote: ... the quality and structure of data (plus the pitfalls mentioned by Robert Duff.) As to quality, ... This will be noticed by the XML parser if it knows about km's ...
    (comp.lang.ada)
  • Re: Code review comment: "Noone uses tokens anymore"
    ... The quality of your text format will hinge on the quality of your parsing. ... However, the suggestion to switch to XML ...
    (comp.programming)