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

Schema help

From: Chandrasekhar A <chandrashekarrvt@gmail.com>
Date: Mon, 14 Nov 2005 16:50:35 +0530
Message-ID: <a301ce540511140320j4ce4fb0q34fed353ccc69a56@mail.gmail.com>
To: xmlschema-dev@w3.org
Schema help

Hello All,

       I am developing XML schema for my application. I struck up
while writing XSD. Please can any body help.

My requriment is :
   We have to support diffirent type of task. Each task is in XML
format. I have a tag called type and parameter type as a elements in
XSD. If task type is type1, only subset of parameters type I have
support. If task type is type2, only subset of parameters type I have
support. Parameters type is global tag - contains all the parameter
types for all tasks. My question is
if ( task type = 'type1' )
{
 parameter type 1
 parameter type 2
}
else if ( task type = 'type2' )
{
 parameter type 2
 parameter type 3
}
else if ( task type = 'type3' )
{
  parameter type1
  parameter type2
  parameter type3
  parameter type4.
}

  How to specify this code in XSD ?


Thanks and Regards,
Chandu
Received on Tuesday, 15 November 2005 06:31:45 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.