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

XSD Prob

From: <davuluri.hyma@wipro.com>
Date: Fri, 19 Dec 2003 14:51:13 +0530
Message-ID: <C43C2A7A08C4B34FA88397A11E7E5A80066287@hyd-mdp-msg02.wipro.com>
To: <xmlschema-dev@w3.org>

Hi all,
Is there a way to write a xsd which validates a xml which is having
something like this.
<a b="c">
<c1>test c1</c1>
<c2>test c2</c2>
that means depending on the value of the attribute 'b' the corresponding
elements differ.i.e if value is 'c' then some elements are displayed if
its 'd' then some elements.can we write XSD to support this kind of
requirement.Kindly help me.
thanks and regards

Confidentiality Notice 

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.
Received on Friday, 19 December 2003 04:26:48 UTC

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