W3C home > Mailing lists > Public > www-forms@w3.org > October 2001

Strange construction in XForms schema

From: Jérôme Nègre <jerome.negre@ecl2000.ec-lyon.fr>
Date: Mon, 8 Oct 2001 10:39:07 +0200
Message-ID: <011f01c14fd4$b3f2a810$630aa8c0@fischer>
To: <www-forms@w3.org>
Hi all,

I'm a bit confused by the XForms schema.

The selectOne element is defined as follow:

  <xsd:element name="selectOne">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:group ref="xform:commonUIChildren"/>
        <xsd:element ref="xform:choices"/>
      </xsd:sequence>
      <xsd:attribute name="id" type="xsd:ID" use="optional"/>
      <xsd:attributeGroup ref="xform:bindFirstAttributes"/>
      <xsd:attributeGroup ref="xform:commonUIAttributes"/>
      <xsd:attribute name="selectUI" type="xform:selectUIType"
use="optional"/>
    </xsd:complexType>
  </xsd:element>

The definition of commonUIChildren is:

  <xsd:group name="commonUIChildren">
    <xsd:all>
      <xsd:element ref="xform:caption"/>
      <xsd:element ref="xform:help" minOccurs="0"/>
      <xsd:element ref="xform:hint" minOccurs="0"/>
      <xsd:element ref="xform:alert" minOccurs="0"/>
      <xsd:element ref="xform:action" minOccurs="0"/>
      <xsd:element ref="xform:extension" minOccurs="0"/>
    </xsd:all>
  </xsd:group>


So the final model is:

<sequence>
    <all>
        ...
    </all>
     ...
</sequence>

According to Schema Structure 3.8.2, this seems to be an invalid construct.

Since I'm far from being a Schema guru, I'd really appreciate opinions from
the list.

Thanks,

Jérôme Nègre
Received on Monday, 8 October 2001 04:39:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:50 GMT