Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Choices of attributes

Reply
Thread Tools

Choices of attributes

 
 
Tony
Guest
Posts: n/a
 
      11-11-2004
How do I to define a tag wit two attributes that
are mutually exclusive?

So I want the tag to look like this:
<COM:description choice1="blah">
or
<COM:description choice2="blahblah">

BUT NOT
<COM:description choice1="blah" choice2="blahblah">
 
Reply With Quote
 
 
 
 
David Carlisle
Guest
Posts: n/a
 
      11-11-2004
(Tony) writes:

> How do I to define a tag wit two attributes that
> are mutually exclusive?
>
> So I want the tag to look like this:
> <COM:description choice1="blah">
> or
> <COM:description choice2="blahblah">
>
> BUT NOT
> <COM:description choice1="blah" choice2="blahblah">


What language do you want to use to make the definition?
XML DTD and W3C XML schema can not express that constraint.
You can express it in Relax NG or schematron for example.

David
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WebControl.Attributes.Add and custom attributes P4trykx ASP .Net 2 01-31-2007 04:33 PM
Parse reserved attributes as normal attributes Max XML 1 09-22-2006 12:04 PM
Choices, Choices!!!! Leeland Clay MCAD 2 02-13-2006 01:53 PM
Choices, choices, choices. Scott Digital Photography 0 10-04-2004 06:15 PM
Choices, choices stuart.cameron Digital Photography 1 06-28-2004 09:29 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57