W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2001

Complex Type Definition Schema Component (Structures)

From: Jeff Rafter <jeffrafter@definedweb.com>
Date: Sat, 24 Feb 2001 11:44:25 -0800
Message-ID: <005501c09e9a$388b7670$f181fea9@lazarus>
To: <xmlschema-dev@w3.org>
I started to try to implement the structures portion of the spec. and am
finding that certain aspects of some of the schema components don't always
transfer cleanly to OO programming languages.  An example of this would be
the Complex Type Definition Schema Component [1].  The property "{content
type}" seems to have multiple types-- it could be a constant (string, int,
enumeration, etc.) for "empty, mixed, element-only" or it can be a simple
type definition or content model-- both of which are Schema Components.  How
to represent this as a single property in an object without the use of a
variant escapes me. It seems that adding a property "{content model}" would
clear this up in a case such as this.  Then "{content type}" could be any of
"empty, simple, mixed, element-only" and "{content model}" could be a
reference to a Schema Component (in which case it would be either a simple
type or a content model), or absent.

Has anyone else noticed this or wished, as I have, that another property was
added?  I know I could easily add these properties to my implementation but
I am trying to be very strict in naming and representation of the Schema

[1] http://www.w3.org/TR/xmlschema-1/#Complex_Type_Definition_details

Jeff Rafter
Defined Systems,
Received on Saturday, 24 February 2001 14:45:01 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:51 UTC