472,971 Members | 1,824 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,971 software developers and data experts.

Conditonal XSD validation based on elements values

Hello,
I am seeking for information about conditional XSD validation based on
elements values,but unfortunatly,I could not find a clear answer.Let's
say that I have three XML elements named GROUP,SUB_GROUP and VALUE.How
to validate the VALUE element depending on GROUP and SUB_GROUP values?
Like if GROUP equals 3 and SUB_GROUP equals 4 then VALUE must be a
string enumeration...
Is it possible to perform that with XSD?I have seen some example using
schemapath (XPath conditions),but that does not seem to be
normalized...?!
Thank you in advance.
Regards.
Nassim
Jun 27 '08 #1
3 3624
na*****************@gmail.com wrote:
I am seeking for information about conditional XSD validation based on
elements values
Not supported in XML Schema at this time. Use the xsi:type attribute to
explicitly indicate which type the element is supposed to be interpreted as.
Jun 27 '08 #2
On 4 juin, 00:12, "Joseph J. Kesselman" <keshlam-nos...@comcast.net>
wrote:
nassim.bouayad.a...@gmail.com wrote:
I am seeking for information about conditional XSD validation based on
elements values

Not supported in XML Schema at this time. Use the xsi:type attribute to
explicitly indicate which type the element is supposed to be interpreted as.
Thank you for yout answer.
Jun 27 '08 #3
On 4 juin, 00:12, "Joseph J. Kesselman" <keshlam-nos...@comcast.net>
wrote:
nassim.bouayad.a...@gmail.com wrote:
I am seeking for information about conditional XSD validation based on
elements values

Not supported in XML Schema at this time. Use the xsi:type attribute to
explicitly indicate which type the element is supposed to be interpreted as.
Thank you for your answer.
Regards.
Nassim.
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Derek Cooper | last post by:
I hope you can help me. I posted this in the microsoft sql server newsgroup a few days ago and got no response so I thought I'd try here. If I can provide any clarification I'll be glad to do so....
21
by: AnnMarie | last post by:
<script language="JavaScript" type="text/javascript"> <!-- function validate(theForm) { var validity = true; // assume valid if(frmComments.name.value=='' && validity == true) { alert('Your...
5
by: EviL KerneL | last post by:
Hi - I am trying to figure out a way to enforce the validation included for this form based on whether the user chooses "email" or "phone" as the contact choice. Right now it is set to enforce...
4
by: adam.lock | last post by:
Hi I have a form which has 10 list boxes on it, each with a select option with values 0 to 3. Once the user submits the form, I want to validate that only three of the list boxes have been...
16
by: Hosh | last post by:
I have a form on a webpage and want to use JavaScript validation for the form fields. I have searched the web for form validation scripts and have come up with scripts that only validate...
4
by: Kermit Piper | last post by:
Hello, I know, using client-side validation to validate form data by looping through a SQL Server table isn't the best way in terms of security. But, is there a way to compare the form object...
9
by: julie.siebel | last post by:
Hello all! As embarrassing as it is to admit this, I've been designing db driven websites using javascript and vbscript for about 6-7 years now, and I am *horrible* at form validation. To be...
11
by: Rik | last post by:
Hello guys, now that I'm that I'm working on my first major 'open' forms (with uncontrolled users I mean, not a secure backend-interface), I'd like to add a lot of possibilities to check wether...
1
by: runway27 | last post by:
i have 3 pages page1.php page2.php and page3.php in page1.php user fills a registration form in page2.php the user can review what they have entered and make any changes and page3.php...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
3
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.