W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2004

Re: Schema limits and ordering

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Sat, 05 Jun 2004 18:31:11 +0100
To: Stuart Gilbert <Stu@Better.Domain.Name>
Cc: xmlschema-dev@w3.org
Message-ID: <f5bd64d7vz4.fsf@erasmus.inf.ed.ac.uk>

Stuart Gilbert <Stu@Better.Domain.Name> writes:

> I've been trying desperately to create a schema that will validate my
> elements in any order inside the root element, while maintaining an
> individual maxOccurs for each of them.

W3C XML Schema cannot enforce such a constraint.

If order doesn't matter, pick an order and enforce it.

Both human authors and machines have no trouble with such discipline,
_and_ it makes the resulting documents easier to read.

ht
-- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, 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 really from me _always_ has this .sig -- mail without it is forged spam]
Received on Saturday, 5 June 2004 13:31:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:44 GMT