W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2002

[REQUIREMENT FOR 1.1] Choice group should allow attributes

From: Michael Gruebsch <michael.gruebsch@pentaprisma.com>
Date: Fri, 22 Mar 2002 18:48:34 -0700
Message-Id: <>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>

Allow choice groups to include attributes. By this the following
use cases could be covered:

   * allow only certain combinations of attributes resp. attribute

     Example: Allow either the definition of an attribute name or
     a reference to an element:

       <A id="x" name="some.name"/>
       <A idref="x"/>

     Compare this to the content model of XLink attributes where
     only certain attribute combinations are allowed.

   * make it possible to allow only certain combinations between
     attributes and elements

     Example: Reference to an element which is out of scope

       <A id="x" a="5"/>
       <B idref="x"/>

     can be used *instead of* a local element

         <A a="5"/>

     Compare this to the definition of the XML W3C Schema where


     either refer to a global definition or is defined locally.



     Michael Grübsch

     phone:  +49 (361) 4262-266
     fax:    +49 (361) 4262-261
     mailto: michael.gruebsch at pentaprisma.com
Received on Friday, 22 March 2002 20:50:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:57 UTC