[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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>
Complex Type Definition Schema Component (Structures)
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
Components.

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

Thanks,
Jeff Rafter
Defined Systems,
http://www.defined.net
Received on Saturday, 24 February 2001 14:45:01 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.