Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 4th, 2005, 12:03 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default Rules based on attribute values...

Is it possible through XML Schema Definitions to model e.g. that an attribute value can only be some specific value if another attribute has got another specific value? Say I have an XML document where these two nodes valid are present...
Code:
<task type="begin" action="establish" />
<task type="end" action="finalize" />
... then I will not allow...
Code:
<task type="begin" action="finalize" />
I am aware that I could do two seperate elements, but is there a way to model more constraints like this?

Hope you can help, Jacob.
__________________
Danish audio books for download at http://www.lytenbog.dk (Danske lydbøger til download).
 
Old July 5th, 2005, 01:28 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

I don't think this is possible using XML schemas.

--

Joe (Microsoft MVP - XML)
 
Old July 6th, 2005, 01:50 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Alright, thanks! Jacob :)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting data in to groups based on rules cube VB.NET 0 April 11th, 2006 06:44 PM
Access to attribute values from class of attribute jacob C# 1 October 28th, 2005 01:11 PM
XPath - Selecting nodes based on attribute values billy_bob_the_3rd XML 4 December 1st, 2004 06:12 PM
conditional statement based on attribute value dancbishop XSLT 2 November 7th, 2003 12:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.