RE: all group maxOccurs cannot be unbounded limitation

As I understand it, such a representation is inextensible. Would there be
any way to use this in a context where extension was possible, and
especially where the extended content could also occur in any order?

Thanks


Mark
----------------------------------------------------------------------------
----
 
Mark Feblowitz                                   [t] 617.715.7231
Frictionless Commerce Incorporated     [f] 617.495.0188 
XML Architect                                     [e]
mfeblowitz@frictionless.com
400 Technology Square, 9th Floor 
Cambridge, MA 02139 
www.frictionless.com  
 

 -----Original Message-----
From: 	ht@cogsci.ed.ac.uk [mailto:ht@cogsci.ed.ac.uk] 
Sent:	Tuesday, February 05, 2002 4:06 AM
To:	Christopher Birkett
Cc:	www-xml-schema-comments@w3.org; xmlschema-dev@w3.org
Subject:	Re: all group maxOccurs cannot be unbounded limitation

Christopher Birkett <christopherbirkett@yahoo.com> writes:

> Hello,
> Can someone explain to me how to specify any order of
> elements and any occurence for each?  I need xsd:all
> with child elements' maxOccurs="unbounded", but this
> does not seem to be valid.  So how else can I do it?

<xs:choice maxOccurs="unbounded">
 <xs:element ref="..."/>
 <xs:element ref="..."/>
 <xs:element ref="..."/>
</xs:choice>

This gives you any order, any number.

> Also, I really do not understand why this limitation
> was put in and why it cannot be turned off.  Can
> someone explain to me the logic behind this decision?

This is a FAQ, there's a number of earlier threads about it, sorry
can't immediately lay my hands on a pointer.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/

Received on Tuesday, 5 February 2002 18:31:01 UTC