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

RE: XML schema for ordinal/nominal variables

From: <noah_mendelsohn@us.ibm.com>
Date: Tue, 5 Sep 2006 14:53:29 -0400
To: "Christian Setzkorn" <christian@s...>
Cc: xmlschema-dev@w3.org
Message-ID: <OFE1771159.4CBF610A-ON852571E0.0067859F-852571E0.0067C6C1@lotus.com>
RE: XML schema for ordinal/nominal variables

Christian Setzkorn writes:

> PS: I didn't really understand why you use <bob></bob> instead 
> of <gender></gender> ... later I would like to use this simple 
> type in complex types with complex content model.

No important reason.  I had to make some arbitrary assumptions about your 
example, and I guessed wrong.  So, I was guessing you might have:

<genders>
        <bob>1</bob>
        <mary>0</mary>
</genders>

but I can see where it's more likely that you'd have:

<person name="bob" gender="1"/>

or 

<person>
        <name>Bob</name>
        <gender>1</gender>
</person>

I think my answer on the type works in any case.

> Many thanks for this. It is exactly what I want.

Terrific.  I'm very glad to help.

Noah



--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------
Received on Tuesday, 5 September 2006 19:41:09 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.