XForms schema error?

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