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

RE: XML schema help for an XML document

From: Manikandan Thangavelu <Manikandan_T1@verifone.com>
Date: Mon, 28 Apr 2008 11:37:46 -0400
Message-ID: <9071515FFCEFC348A3335D9E548E28D107EF1A6C@TPANTMAIL.verifone.com>
To: "Manikandan Thangavelu" <Manikandan_T1@verifone.com>, <xmlschema-dev@w3.org>
RE: XML schema help for an XML document
Hi All,
 
Any updates on this question? I am in a kind of urgency and i am new bie
to XML schema.
Any help will be very much appreciated.
 
Thanks and Regards
Manikandan

________________________________

From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org]
On Behalf Of Manikandan Thangavelu
Sent: 27 April 2008 21:33
To: xmlschema-dev@w3.org
Subject: XML schema help for an XML document





______________________________________________ 
From:   Manikandan Thangavelu  
Sent:   27 April 2008 21:27 
To:     'xmlschema-dev-request@w3.org' 
Subject:        XML schema help for an XML document 

Hi All, 

I am trying to develop an XML schema for an XML file which is used to
build the UI for an application. 
I have an issue in it.In one of my XML tags there are two attributes out
of which one is mandatory and presence of both are mutually exclusive.If
one of those attibbute is present, then the other should not.Follwing is
the sample of my XML

    <Menuitem name="_Contents" ID= "ID_CONTENTS" Description="Help
Contents." /> 
    <Menuitem name="_Index" ID= "ID_INDEX" Description="Help Index." /> 
    <Menuitem name="_Search" ID= "ID_SEARCH" Description="Help Search."
/> 
    <Menuitem name="_About Me" ID= "ID_ABOUT_Me" Description="VeriCentre
version information and Add-on(s) installed." />

    <Menuitem name="_Notepad" ApplicationPath="C:\Windows\notepad.exe"
Description="Opens the notepad application."/> 
    <Menuitem name="Adobe" ApplicationPath="C:\Program
Files\Adobe\Adobe.exe" Description="Open Adobe"/> 


Among the attributes for Menuitem either "ID" or "ApplicationPath" is
mandatory.If "ID" is there, then "ApplicationPath" should not be and if
"ApplicationPath" is there, then "ID" should not be.

How can I develop a schema for this case? 

Thanks in Advance, 
Manikandan 
Received on Monday, 28 April 2008 15:39:10 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.