W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2004

RE: How Check If One Element Or A Group Exists

From: Michael Kay <mike@saxonica.com>
Date: Thu, 30 Sep 2004 17:08:28 +0100
To: "'Gary Fix'" <gary.fix@win-na.com>, <xmlschema-dev@w3.org>
Message-Id: <E1CD3Tu-0002SW-00@ukmail1.eechost.net>

Something like:

<choice>
  <sequence>
    <element ref="vin"/>
    <group ref="separate" minOccurs="0"/>
  </sequence>
  <group ref="separate"/>
</choice>

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Gary Fix
> Sent: 30 September 2004 16:04
> To: xmlschema-dev@w3.org
> Subject: How Check If One Element Or A Group Exists
> 
> 
> Hi!
> How do I check for the existence of either an element such as 
> an auto Vehicle Id Number (VIN) or a separate group of 
> elements, such as auto body, make, model and year?
> I need to know if one (VIN) or the other (group) is supplied. 
> Both may be supplied optionally.
> thanks in advance...gary...
> 
> 
> 
> 
Received on Thursday, 30 September 2004 16:08:34 UTC

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