W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2003

element with multiple definitions

From: Daniel Patel <danielp@ii.uib.no>
Date: Wed, 23 Jul 2003 15:57:55 +0200 (MEST)
To: xmlschema-dev@w3.org
Message-ID: <Pine.GSO.4.56.0307231556570.26301@apal.ii.uib.no>

  2 questions :
  Is it possible to specify that for an element, either all or none of
 its attributes must be specified.
  Specifying only some of them is not allowed.

  How can i specify in an xml schema so
  an element with name 'arg' either consists of an attribute att
  and contains a simple element name,

  <arg att="aaa">

  consists of an attribute differentAtt and a simple element

  <arg differentAtt="bbb">

  I don't want having an arg element with both attributes or both
  name and age element to be legal.

Received on Friday, 25 July 2003 08:51:49 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:02 UTC