- From: Henry S. Thompson <ht@inf.ed.ac.uk>
- Date: Thu, 28 Jul 2016 09:04:16 +0100
- To: ihe.onwuka@gmail.com
- Cc: Mukul Gandhi <gandhi.mukul@gmail.com>, "xmlschema-dev\@w3.org" <xmlschema-dev@w3.org>
Ihe Onwuka <ihe.onwuka@gmail.com> writes:
> Forgive me if this does not apply to XSD 1.1 but contrary to your write up
> sequence is not a subcase of xsd:all because xsd:all has severe cardinality
> restrictions in that it is limited to 0 or 1 occurrence which would
> prohibit it's use even where unordered semantics are explicitly desired.
I _think_ you're confusing constraints on the xsd:all element itself
with constraints on its content. The latter are _not_ constrained wrt
cardinality, as the following example (from section 3.8.4.1.3 of the
spec [1]) makes clear:
<xs:all>
<xs:element name="a" minOccurs="0" maxOccurs="5"/>
<xs:element name="b" minOccurs="1" maxOccurs="1"/>
<xs:element name="c" minOccurs="0" maxOccurs="5"/>
</xs:all>
ht
[1] https://www.w3.org/TR/xmlschema11-1/#all-mg
--
Henry S. Thompson, School of Informatics, University of Edinburgh
10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail from me _always_ has a .sig like this -- mail without it is forged spam]
Received on Thursday, 28 July 2016 08:04:47 UTC