W3C home > Mailing lists > Public > public-rif-comments@w3.org > September 2008

RIF BLD: XML Schema for Condition Language and JAXB

From: Wolfgang Laun <wolfgang.laun@gmail.com>
Date: Sun, 21 Sep 2008 20:26:37 +0200
Message-ID: <17de7ee80809211126p6bb4adf9v6f629660938aa205@mail.gmail.com>
To: public-rif-comments@w3.org
Assuming that much of the software for processing XML in the RIF
will be written in Java, it is highly probable that much of this will be
done using JAXB,
the "Java Architecture for XML Binding". Sun's Java 1.6 comes bundled with
XML Schema compiler. I have investigated the XML schema for the RIF

The schema as given in the "RIF Basic Working Draft 30 July 2008" compiles
into 33 Java classes. Using a different approach, essentially the same
XML definition can be expressed in an XML schema which compiles into
only about 20 Java classes.

The current XML schema does not try to exploit inheritance by XML type
extension. (This would be possible for IRIMetaType as a base type.)

Using the xsd:choice construct results in class definitions with several
fields where only one is used (example: Formula). Such objects are
awkward and, potentially, error prone.

It would be preferable to use explicit complexType and simpleType
definitions (rather than inlined types) as this makes it possible to reuse
same type for differently tagged elements.

If it is a concern of  the working group to formulate an XML schema
which simplifies its usage for Java programmers then a rework of the
schema definition should be considered. I'd be glad to contribute my
work towards an alternate version.

Kind regards
Dr. Wolfgang Laun
Received on Monday, 22 September 2008 07:54:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:06:58 UTC