W3C home > Mailing lists > Public > public-forms@w3.org > July 2007

Schema issue: Order dependence of submission child elements

From: John Boyer <boyerj@ca.ibm.com>
Date: Thu, 26 Jul 2007 15:43:53 -0700
To: Forms WG (new) <public-forms@w3.org>
Message-ID: <OF8AB8F123.300D8D76-ON88257324.007A37A7-88257324.007CDEAE@ca.ibm.com>
The issue of ordered children of submission came up on the Wednesday 

On the telecon it was stated that it was hard in XML schema to specify 
child elements that were both optional and in a required order.

I preserved this aspect of submission in the current editor's draft 
because I do not understand why it is hard, whereas I can easily see it 
being harder to write a schema that says the child is optional but could 
appear anywhere in the list of child elements.  It is easy to see how to 
do it if the schema also allows the child to appear any number of times, 
but this is not what we want.

Isn't it just a case of saying that the submission has a resource element 
with minoccurs=0 then a method element with minoccurs=0 then a header 
element with minoccurs=0 and maxoccurs=unbounded?

Is there an easy way to say "In any order, one or zero resource plus one 
or zero method plus zero or more header"? 

John M. Boyer, Ph.D.
STSM: Lotus Forms Architect and Researcher
Chair, W3C Forms Working Group
Workplace, Portal and Collaboration Software
IBM Victoria Software Lab
E-Mail: boyerj@ca.ibm.com 

Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer
Received on Thursday, 26 July 2007 22:44:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:52 UTC