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: <5.1.0.14.1.20020322184828.0246c330@localhost>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>
Description:

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

   * allow only certain combinations of attributes resp. attribute
     groups

     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

       <B>
         <A a="5"/>
       </B>

     Compare this to the definition of the XML W3C Schema where

       <xsd:element>

     either refer to a global definition or is defined locally.


Michael


----------------------------------------------------------------------
   PENTAPRISMA TECHNOLOGIES GmbH
   www.pentaprisma.com

     Michael Grübsch

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

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:33 UTC