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

Setting the minOccurs depending on other val

From: Aaron Frenger <apfrenger@apfconsult.com>
Date: Mon, 12 May 2003 09:05:51 -0400
To: <xmlschema-dev@w3.org>
Message-ID: <000001c31887$37232e90$0202a8c0@apfdt2>
Hi all,
I am not sure if this is possible, but I am trying to set minOccurs for
an element depending on another elements value.
For example.
   <xsd:element name="myElement">
        <xsd:element name="NumberOfPeople" type="xsd:short"/> 
        <xsd:element name="Name" type="xsd:string"
I am somewhat new to XML Schema and I have been trying to do some things
with keys and have been unsuccessful.
Any help would be appreciated.
Received on Monday, 12 May 2003 09:11:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:11 UTC