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

RE: minOccurs maxOccurs doesnt seem to be working correctly in

  • To: Paul Spencer <xml-dev-list@b...>, xml-dev@l...
  • Subject: RE: minOccurs maxOccurs doesnt seem to be working correctly in my schema
  • From: Marielou <marielou_h@y...>
  • Date: Wed, 14 Jun 2006 09:18:02 +0100 (BST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=wVZpp4FZXdChjCEkNiYvWJc3x3QqmyD17w7aTrL5uoWVil7rAM1jPRURQ21Ivb7yw8idFrraGqiTuwcVBRISRxoVmeN6f3XkH9cXsxZnIzHYEsOPy0jyrgbFtoDC5PPmQhZvt5Ht0LOYft1+udzcO/WkoocSdyGVosn4KhlxUvM= ;
  • In-reply-to: <NBBBIBMKFOFCNEBAKDPLOELNKPAA.xml-dev-list@b...>

RE:  minOccurs maxOccurs doesnt seem to be working correctly in
> "local and
> top-level element
> declarations only"
does this disallow using <all> with {min occurs}=0 or
1, {max occurs}=1, and using element ref to reference
another  element which has a <sequence> which can
occur more than 1x? 

Marie Louise

--- Paul Spencer <xml-dev-list@b...> wrote:

> I have not looked at the detail of your schema, but
> the bit below is
> enough - you cannot have unrestricted order and
> allow unrestricted
> cardinality. In this case, most people would use
> xs:sequence.
> 
> From 3.8.1 of XML Schema Pt1 for xs:all: "... the
> element information item
> [children] ·validated· by the model group must: ...
> contain all and only
> exactly zero or one of each element specified in
> {particles}. The elements
> can occur in any order. In this case, to reduce
> implementation complexity,
> {particles} is restricted to contain local and
> top-level element
> declarations only, with {min occurs}=0 or 1, {max
> occurs}=1."
> 
> Paul Spencer
> 
> > -----Original Message-----
> > From: Marielou [mailto:marielou_h@y...]
> > Sent: 13 June 2006 17:14
> > To: xml-dev@l...
> > Subject:  minOccurs maxOccurs doesnt seem
> to be working
> > correctly in my schema
> >
> >
> > In my schema, elements should not have any
> > restrictions on their sequence however they have
> > restrictions on their occurence, some can occur
> more
> > than once, the number of occurences is specified
> in
> > the schema.
> 
> 


Send instant messages to your online friends http://uk.messenger.yahoo.com 

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.