AnsweredAssumed Answered

maxOccurs='unbounded'

Question asked by nyronian on Jun 12, 2007
Latest reply on Jun 29, 2007 by kvc
I have the following xsd used to "Create Content" to XML:

<?xml version="1.0" encoding="UTF-8"?>
<!–W3C Schema generated by XMLSpy v2007 sp2 (http://www.altova.com)–>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <xs:element name="title" type="xs:normalizedString"/>
   <xs:element name="text" type="xs:string"/>
   <xs:element name="picture" type="xs:anyURI"/>
   <xs:element name="heading" type="xs:normalizedString"/>
   <xs:element name="document">
      <xs:complexType>
         <xs:sequence>
            <xs:element ref="ContentHeadingMain"/>
            <xs:element ref="ContentHeading"/>
            <xs:element ref="Features"/>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
   <xs:element name="Features">
      <xs:complexType>
         <xs:sequence>
            <xs:element ref="heading"/>
            <xs:element ref="ContentFeature" minOccurs="1" maxOccurs="unbounded"/>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
   <xs:element name="ContentHeadingMain">
      <xs:complexType>
         <xs:attribute name="title" type="xs:normalizedString" use="required"/>
      </xs:complexType>
   </xs:element>
   <xs:element name="ContentHeading">
      <xs:complexType>
         <xs:sequence>
            <xs:element ref="title"/>
            <xs:element ref="text"/>
            <xs:element ref="picture"/>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
   <xs:element name="ContentFeature">
      <xs:complexType>
         <xs:sequence>
            <xs:element ref="text"/>
            <xs:element ref="picture"/>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
</xs:schema>

Notice the ContentFeature type is an "unbounded" occurance.  For some reason the "+" sign does not show up in the editor for the XML.  Is there something I'm missing?  Does that feature work for complex types?

Thank you for your help….

Outcomes