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

Re: am I understanding this correctly?

From: Bob Schloss <rschloss@us.ibm.com>
Date: Thu, 27 Jan 2005 16:38:31 -0500
To: Jeff Sonstein <jeffs@it.rit.edu>, xmlschema-dev@w3.org
Message-ID: <OF728089FF.C7D92153-ON85256F96.0076B5FA-85256F96.0076E20C@us.ibm.com>
Re: am I understanding this correctly?





Jeff,

      Your understanding is correct.

            Regards,
            Bob

Scalable XML Infrastructure
IBM Thomas J Watson Research Center
Hawthorne, New York, USA
http://www.research.ibm.com/XML




                                                                           
             Jeff Sonstein                                                 
             <jeffs@it.rit.edu                                             
             >                                                          To 
             Sent by:                  xmlschema-dev@w3.org                
             xmlschema-dev-req                                          cc 
             uest@w3.org                                                   
                                                                   Subject 
                                       am I understanding this correctly?  
             01/27/2005 04:31                                              
             PM                                                            
                                                                           
                                                                           
                                                                           
                                                                           





I have a Schema I am finishing up
to express 3D as XML (an evolution of VRML97)

   http://www.xvrml.net/schemas/xVRML.xsd

in this Schema I declare a new complexType:

   <xs:complexType name="groupingAndChildrenNodes">
     <xs:sequence maxOccurs="unbounded" minOccurs="0">
       <xs:choice>
         <xs:element ref="Anchor"/>
         <xs:element ref="Background"/>
         [...]
       </xs:choice>
     </xs:sequence>
   </xs:complexType>

I understand this as meaning
"a sequence of as many choices as you want
  each choice made from the following list of possible choices"
so, for example, an element of type groupingAndChildrenNodes
could end up containing 2 Anchors and a Background and...

do I understand this correctly?

someone I was corresponding with was asserting
that this actually meant that any given choice from the list of choices
[say Anchor]
could be in a particular element of type groupingAndChildrenNodes
once and only once

thanks in advance for your help

jeffs

--
Jeff Sonstein, Assistant Professor
Department of Information Technology
Rochester Institute of Technology
==============================================
IT Dept Webspace:                       http://www.it.rit.edu/~jxs/
Blog:                          http://streamer.rit.edu/technobabble/
xVRML Project:                                  http://www.xvrml.net/
Public Key:                    http://ariadne.iz.net/~jeffs/jeffs.asc
Disclaimer:   http://www.it.rit.edu/~jxs/emailDisclaimer.html

"Power Corrupts.
  PowerPoint Corrupts Absolutely."
           -  Edward Tufte  -
Received on Thursday, 27 January 2005 21:39:00 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.