S
shaun
I should like to allow/disallow values for an attribute based on the
value of another attribute e.g if I have a document
<character name="snow white" sex="female" hatcolour=""/>
<character name="doc" sex="male" hatcolour="brown"/>
then this is valid. however
<character name="snow white" sex="female" hatcolour="green"/>
should be invalid. (in my story, female characters don't wear hats).
so I should like a schema which will allow hat colours green|brown|red
etc if the sex = 'male' but only allow the empty string for the hat
colour if the sex = 'female'.
is this possible in W3C schema?
cheers
shaun
value of another attribute e.g if I have a document
<character name="snow white" sex="female" hatcolour=""/>
<character name="doc" sex="male" hatcolour="brown"/>
then this is valid. however
<character name="snow white" sex="female" hatcolour="green"/>
should be invalid. (in my story, female characters don't wear hats).
so I should like a schema which will allow hat colours green|brown|red
etc if the sex = 'male' but only allow the empty string for the hat
colour if the sex = 'female'.
is this possible in W3C schema?
cheers
shaun