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:group ref="xform:commonUIChildren"/>
        <xsd:element ref="xform:choices"/>
      <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"

The definition of commonUIChildren is:

  <xsd:group name="commonUIChildren">
      <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"/>

So the final model is:


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.


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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:05 UTC