Choices of attributes

T

Tony

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">
 
D

David Carlisle

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

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top