Altova Mailing List Archives

Re: XSD xs:all

From: mbaird@-----------.---------.---
Date: 10/19/2004 1:09:00 PM
Thank you for the quick response.

So what I need to do is create a parent element for <DocInfo> similar to 
below. Is this lack of capability by design or an oversight?


Mark Baird

"Han" wrote:

> One way is add a parent to the unbounded occurence element.
> Another way is choice with maxOccurs=unbounded. In this case, unordered 
> occurences within choice will be allowed, but separate occurence rule for 
> each elements will not be effective.
> "mbaird" <mbaird@d...> wrote in message 
> news:C0080B77-FF88-4FDC-B5B7-4E857D903206@m......
> >I would like to use "xs:all" in the following complexType but I have one
> > element that requires a maxOccur="unbounded" and a mix of required and
> > optional elements.
> >
> > How can I structure the XSD to get what I need? I have tried to use
> > "xs:extension" extending a complexType but with no luck.
> >
> > Thanks,
> >
> > Mark Baird
> >
> > <xs:element name="Job" type="JOB"/>
> >
> > <xs:complexType name="JOB">
> >  <xs:sequence>
> >    <xs:element ref="DesktopId" minOccurs="0" maxOccurs="1"/>
> >    <xs:element ref="JobNumber" minOccurs="1" maxOccurs="1"/>
> >    <xs:element ref="FilingCompany" minOccurs="0" maxOccurs="1"/>
> >    <xs:element ref="FormType" minOccurs="1" maxOccurs="1"/>
> >    <xs:element ref="Team" minOccurs="0" maxOccurs="1"/>
> >    <xs:element ref="Cycle" minOccurs="1" maxOccurs="1"/>
> >    <xs:element name="Task" type="TASK" minOccurs="1" maxOccurs="1"/>
> >    <xs:element ref="BCycle" minOccurs="0" maxOccurs="1"/>
> >    <xs:element ref="TCycle" minOccurs="0" maxOccurs="1"/>
> >    <xs:element name="Redline" type="REDLINE" minOccurs="0" maxOccurs="1"/>
> >    <xs:element name="Blacklining" type="BLACKLINE" minOccurs="0"
> > maxOccurs="1"/>
> >    <xs:element ref="BlackliningType" minOccurs="0" maxOccurs="1"/>
> >    <xs:element ref="Fonts" minOccurs="0" maxOccurs="1"/>
> >    <xs:element name="DocSequence" type="DOC_SEQUENCE" minOccurs="1"
> > maxOccurs="1"/>
> >    <xs:element name="DocInfo" type="DOC_INFO" maxOccurs="unbounded"/>
> >  </xs:sequence>
> > </xs:complexType>
> >
> >
> > 


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.