- From: Cams Ismael <Ismael.Cams@siemens.com>
- Date: Fri, 19 Dec 2003 12:36:52 +0100
- To: "'davuluri.hyma@wipro.com'" <davuluri.hyma@wipro.com>
- Cc: xmlschema-dev@w3.org
Received on Friday, 19 December 2003 06:37:47 UTC
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 UTC