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

newbie help -- schema cange suggestions needed

From: Scott Paulding <pldng@yahoo.com>
Date: Wed, 20 Apr 2005 10:17:18 -0700 (PDT)
Message-ID: <20050420171718.34307.qmail@web60503.mail.yahoo.com>
To: xmlschema-dev@w3.org
help schema

Hello,

I'm somewhat new to xml schema and I've been asked to make some
changes to an existing schema we have:

in this code snippet, we need to change from a sequence because our
content doesn't necessarily get arranged in this specific order:

<xs:complexType name="segment_type">
 <xs:sequence>
  <xs:element name="effect" minOccurs="0">
   <xs:complexType>
    <xs:attribute name="effrg" type="xs:string" use="required"/>
    <xs:attribute name="efftext" type="xs:string" use="optional"/>

    <xs:attribute name="displayeff" type="xs:string" use="optional"/>
    <xs:attribute name="tocdisplayeff" type="xs:string" use="optional"/>
   </xs:complexType>
  </xs:element>
  <xs:element name="chgdesc" type="xs:string" minOccurs="0"
maxOccurs="unbounded"/>
  <xs:element name="title" type="xs:string" minOccurs="0"/>
  <xs:element name="segment" type="segment_type" minOccurs="0"
maxOccurs="unbounded"/>
 </xs:sequence>
</xs:complexType>

By my understanding, we can't use <xs:all> because some of the elements
are
unbounded. Is this correct? If so, is there another option?

Thanks for the help,

-scott

"If only we'd stop trying to be happy we could have a pretty good time." 
        - Edith Wharton

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Received on Thursday, 21 April 2005 11:55:53 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.