[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Attribute use depending on another attribute value

From: Jan Vosloo <jan.vosloo@mxit.com>
Date: Thu, 17 May 2007 14:06:23 +0200
Message-ID: <45FBF1D2998C93429047415BE8091CC889A0FD@HERMES.swistgroup.com>
To: <xmlschema-dev@w3.org>
Attribute use depending on another attribute value
*******************************************************************
Click here to view our e-mail legal notice: 
http://www.mxit.co.za/pdfs/mxit_legal.pdf or call: +27 21 888 7000
*******************************************************************
Hi, 

I just want to know how I would do the following:

 

<root>

  <test type="1" value="1" display="disp"/>

  <test type="2" value="100" />

</root>

 

I want the 'display' attribute to be available for use depending on what the
value for the 'type' attribute is.

 

How can I do this in a XSD (XML schema)??

 

Thanks you in advance  

 

Jan Vosloo | Developer

Tel: +27 21 888 7000 | Fax: +27 21 883 8123 

 

 






image001.gif
(image/gif attachment: image001.gif)

Received on Thursday, 17 May 2007 14:18:46 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.