Choices of attributes

Tony (archive)

Usenet Archive
Joined
Mar 5, 2000
Messages
639
Reaction score
0
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">
 

David Carlisle

Usenet Archive
Joined
Jan 5, 2000
Messages
609
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top