comp.lang.ada
 help / color / mirror / Atom feed
From: "Robert C. Leif" <rleif@rleif.com>
To: <comp.lang.ada@ada-france.org>
Subject: Re: Experiences of XML parser generators for Ada?
Date: Fri, 3 Dec 2004 15:18:03 -0800
Date: 2004-12-03T15:18:03-08:00	[thread overview]
Message-ID: <mailman.169.1102115936.10401.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <20041203110026.6F40B4C408A@lovelace.ada-france.org>

   
   I have had the experience of manually creating a dual system of XML
schema and Ada for Cytometry, CytometryML.  This is described, at length in
the CytometryML page of my web site, WWW.NewportInstruments.com. I also gave
a Birds of a Feather Presentation in absentia at SIGAda 2004, which is also
available on the Ada_Med page and includes audio. 
   Translation of most of Ada into XML and XML schemas is straightforward
and probably can be facilitated by constructing tools based on ASIS.
However, when the XML including schemas is defined as elements with a hidden
type, there could be a problem.  One simple solution is to declare a type
with a name which is a concatenation of the XML element's name and the
suffix type.  In many case, it would be appropriate to make the Ada type
private.
I have created numeric data-types in Ada and XML schema with the same names.
As luck would have it, these ECMA based names are also used for MathCad. I
have also created Ada bounded strings that include character sets.  These
provide a close approximation of XML strings.  XML strings can also include
a constraint based on a minimum number of characters.
I still strongly believe a description of Ada in the form of XML schema
should be created.  The goal is to construct eventually a programming
environment including an editor based on XML. 
Bob Leif




       reply	other threads:[~2004-12-03 23:18 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20041203110026.6F40B4C408A@lovelace.ada-france.org>
2004-12-03 23:18 ` Robert C. Leif [this message]
2004-12-07 19:41   ` Experiences of XML parser generators for Ada? Björn Persson
2004-12-04 20:37 Robert C. Leif
2004-12-04 22:53 ` Adrien Plisson
2004-12-08 23:37   ` Lionel Draghi
2004-12-09 12:29     ` Georg Bauhaus
2004-12-09 21:04       ` Lionel Draghi
2004-12-09 21:09     ` Lionel Draghi
2004-12-10 22:09     ` Simon Wright
2004-12-11  0:02       ` Lionel Draghi
2004-12-11  9:03         ` Pascal Obry
  -- strict thread matches above, loose matches on Subject: below --
2004-12-02 21:04 Daniel W
2004-12-02 22:19 ` Georg Bauhaus
2004-12-03  8:57 ` Martin Krischik
2004-12-03  9:16   ` Adrien Plisson
2004-12-03 20:42     ` Daniel W
2004-12-03 23:33       ` Adrien Plisson
2004-12-04  8:05         ` Dmitry A. Kazakov
2004-12-04 11:40           ` Marius Amado Alves
2004-12-04 13:14             ` Martin Krischik
2004-12-05 16:27               ` Jeffrey Carter
2004-12-05 17:58                 ` Dmitry A. Kazakov
2004-12-04 13:59             ` Georg Bauhaus
2004-12-05  8:47               ` Martin Krischik
2004-12-06 11:18                 ` Georg Bauhaus
2004-12-06 18:12                 ` Pascal Obry
2004-12-13 20:34                   ` Florian Weimer
2004-12-05  1:50             ` David Botton
2004-12-04 14:01           ` Georg Bauhaus
2004-12-04 16:27             ` Dmitry A. Kazakov
2004-12-06  5:59         ` Daniel W
2004-12-06 14:48         ` Marc A. Criley
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox