W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2007

Selective element based on attribute

From: <Muthuvelan.Swaminathan@dds.net>
Date: Thu, 4 Oct 2007 15:32:55 -0400
To: xmlschema-dev@w3.org
Message-ID: <OFB6FC1489.55A81CFC-ON8525736A.006ACA05-8525736A.006B5448@donovandata.com>
Hi  there,

How can I define an xsd for the following scenario?

<parenttag attr="add | del | chg">

Is it possible to create an xsd where childtag3 will have a value null if 
the parenttag  attr equals add else a nonnull-String when the parenttag 
attr is del/chg?

Received on Friday, 5 October 2007 00:45:55 UTC

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