- From: Lehmann, Steen <slehmann@silverstream.com>
- Date: Wed, 20 Feb 2002 12:02:05 +0100
- To: "'www-forms-editor@w3.org'" <www-forms-editor@w3.org>
It occurs to me that the <schema> and <instance> elements in the XForms
schema should have minOccurs=0 on their definitions, since they are allowed
to have empty content (if an href= attribute is specified, as in the
examples). The default for minOccurs is 1 unless specified, so this would
require at least some content to be present, since processContents is strict
(also the default).
For <schema> I would change:
<xsd:element name="schema">
...
<xsd:any namespace="##other"/>
...
</xsd:element>
to
<xsd:element name="schema">
...
<xsd:any namespace="##other" minOccurs="0"/>
...
</xsd:element>
For <instance> the wildcard would become:
<xsd:any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
Regards,
-- Steen
/**
* Steen Lehmann - <mailto:slehmann@silverstream.com>
* Senior Software Engineer (R&D), SilverStream Software
* <http://www.silverstream.com>
*/
Received on Wednesday, 20 February 2002 06:07:24 UTC