From: Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de>
Subject: Re: Experiences of XML parser generators for Ada?
Date: Thu, 9 Dec 2004 12:29:51 +0000 (UTC)
Date: 2004-12-09T12:29:51+00:00 [thread overview]
Message-ID: <cp9gfv$jjb$3@a1-hrz.uni-duisburg.de> (raw)
In-Reply-To: 41b79025$0$1333$636a15ce@news.free.fr
Lionel Draghi <Lionel.nospam.Draghi@ada-france.org> wrote:
: Adrien Plisson a ?crit :
: ...
:> well, Ada has nothing to do with w3c. it is the our job, as Ada
:> programmers to design and implement a library providing those features
:> (as Xml/Ada does). it shall never be part of the standard.
:
: Yes, but
:
: type Money is range 1 .. 10;
:
: becomes
:
: name="TN" type="xsd:int"
:
: in WSDL. The range is lost.
:
: Maybe some more Ada awareness at w3c could have cause this semantics to
: be included. (If it is, please let me know)
This problem has been discussed during XML Schema design.
In XML Schema you have some form of ranges in the type libraries.
pro: You don't need to bother to make a good external format,
just lazily copy your data definitions to an XML stream
medium: If you need to carry type information you can make this
explicit in a type="..." attribute. (This is then not standards
based, but it gives more flexibility than a parser that says:
range error at l.1234, and the just stops.)
con: Freezing the range might not meet any expectation but your
program's
: I don't want client to continuously cause exceptions in my server, just
: because there is no way to let them know about the limits.
Use 'Valid and so on. Web services or not, I/O is always a possible
source of surprises. :-) A secure server cannot rely on external input
anyway, I'd guess.
: Once more back to strong typing benefits discussion :-)
The flexible solution is Relax NG.
next prev parent reply other threads:[~2004-12-09 12:29 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-04 20:37 Experiences of XML parser generators for Ada? Robert C. Leif
2004-12-04 22:53 ` Adrien Plisson
2004-12-08 23:37 ` Lionel Draghi
2004-12-09 12:29 ` Georg Bauhaus [this message]
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
[not found] <20041203110026.6F40B4C408A@lovelace.ada-france.org>
2004-12-03 23:18 ` Robert C. Leif
2004-12-07 19:41 ` Björn Persson
-- 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