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

conditional expression

From: Debora Vanni <debora.vanni@tvblob.com>
Date: Wed, 26 Jul 2006 15:09:15 +0200
To: xmlschema-dev@w3.org
Message-Id: <1153919355.4603.9.camel@localhost.localdomain>
conditional expression

Hi all!
I have this problem on validation with xsd.
The xml file has a particular tag: when his value is "TCP" the xml file
must have other two tags, when his value is "OUR" there should be no
other tags.
So the xml should be either

<special-tag  type="string" value="TCP"/>
<host type="string" value="192.168.72.26"/>	
<port type="int" value="10202"/>

or
<special-tag  type="string" value="OUR"/>

Is there some way to do this with xsd?
Thank you very much for your help!
Debora
Received on Wednesday, 26 July 2006 13:09:52 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.