R
Ralf Wahner
Dear Masters of XML
As I'm new to XML Schema I dare to ask a possibly recurring
question: Given an element <elem> with two attributes @a and
@b. The attributes are bound by the condition, that either both
or none must be present, i.e.
<elem a="val_a" b="val_b"/> or <elem/>
is valid, whilst
<elem a="val_a"/> or <elem b="val_b"/>
is not valid. In other words, attribute @a is present if and
only if attribute @b is present. How to express this be means
of XML Schema?
Could I ask you for a hint? Is there an insider's tip concerning
XML Schema comparable to the Mulberry Biglist on XSLT? Thank you
very much.
Yours sincerely,
Ralf
As I'm new to XML Schema I dare to ask a possibly recurring
question: Given an element <elem> with two attributes @a and
@b. The attributes are bound by the condition, that either both
or none must be present, i.e.
<elem a="val_a" b="val_b"/> or <elem/>
is valid, whilst
<elem a="val_a"/> or <elem b="val_b"/>
is not valid. In other words, attribute @a is present if and
only if attribute @b is present. How to express this be means
of XML Schema?
Could I ask you for a hint? Is there an insider's tip concerning
XML Schema comparable to the Mulberry Biglist on XSLT? Thank you
very much.
Yours sincerely,
Ralf