W3C home > Mailing lists > Public > www-forms-editor@w3.org > February 2002

XForms schema error?

From: Lehmann, Steen <slehmann@silverstream.com>
Date: Wed, 20 Feb 2002 12:02:05 +0100
Message-ID: <FD8A740186525243807FBCDB7E739D0585F2C7@EXBE1.silverstream.be>
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 name="schema">
        <xsd:any namespace="##other" minOccurs="0"/>

For <instance> the wildcard would become:

	<xsd:any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>


-- 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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:38:05 UTC