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>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 10 June 2009 18:12:10 GMT