Re: Schema limits and ordering

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 UTC