OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   newbie help -- schema development

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev@lists.xml.org
  • Subject: newbie help -- schema development
  • From: Scott Paulding <pldng@yahoo.com>
  • Date: Wed, 20 Apr 2005 10:22:16 -0700 (PDT)
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=d7VazQ0RpoiOsmJfTFpBUPXloxe/1xxpaO3Ne0WauoD9hs3O6SavPh9/WJG/bzbjTCCE7R0cO67QU3Yk33kgTS4+plUYUcTLHgpVNBF2gQLwjo58t4fxGHA0PCqv1Rz5v2W2U5psyfuNgvtS7A/AnRD3oSFc0+Q6frG9Ds3jND0= ;


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:element name="effect" minOccurs="0">
    <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:element name="chgdesc" type="xs:string" minOccurs="0"
  <xs:element name="title" type="xs:string" minOccurs="0"/>
  <xs:element name="segment" type="segment_type" minOccurs="0"

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

Thanks for the help,


"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 


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS