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

RE: XSD Prob

From: Cams Ismael <Ismael.Cams@siemens.com>
Date: Fri, 19 Dec 2003 12:36:52 +0100
Message-ID: <57FD2C3A246F76438CA6FDAD8FE9F1957ABF45@hrtades7.atea.be>
To: "'davuluri.hyma@wipro.com'" <davuluri.hyma@wipro.com>
Cc: xmlschema-dev@w3.org
Hello,
 
no it is not possible to define this kind of dependencies with the XSD
schema language.
To perform this you could use another schema language (e.g. schematron).
 
Kind regards,
IsmaŽl

-----Original Message-----
From: davuluri.hyma@wipro.com [mailto:davuluri.hyma@wipro.com] 
Sent: vrijdag 19 december 2003 10:27
To: xmlschema-dev@w3.org
Subject: XSD Prob


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>
</a>
 
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
aaaaa

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 06:37:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:40 GMT