R
Robert William Vesterman
Is there a way to say, in a DTD things like:
(1) The default value of attribute X is the value of attribute Y?
(2) The default value of attribute X is the value of attribute Y
appended by the text "BLAH"?
(3) The default value of attribute X is "BLAH" if attribute Y has
value "BLING", or "BOING" otherwise?
(4) The default value of attribute X is "BLAH" if attribute Y is
present, or "BOING" otherwise?
Or various other possibilities beyond the simple "the default value is
such-and-such and that's all there is to it"?
If I need such concepts, and it's not possible, obviously I have to do
them at the application level, and pretend at the XML level that
they're just "#IMPLIED". Is that somehow considered an invalid,
incorrect, impure, evil, or otherwise negative thing to do?
Thanks,
Bob Vesterman.
(1) The default value of attribute X is the value of attribute Y?
(2) The default value of attribute X is the value of attribute Y
appended by the text "BLAH"?
(3) The default value of attribute X is "BLAH" if attribute Y has
value "BLING", or "BOING" otherwise?
(4) The default value of attribute X is "BLAH" if attribute Y is
present, or "BOING" otherwise?
Or various other possibilities beyond the simple "the default value is
such-and-such and that's all there is to it"?
If I need such concepts, and it's not possible, obviously I have to do
them at the application level, and pretend at the XML level that
they're just "#IMPLIED". Is that somehow considered an invalid,
incorrect, impure, evil, or otherwise negative thing to do?
Thanks,
Bob Vesterman.