[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
DTD fixed attributes
- From: Kevin Burges <xmldude@burieddreams.com>
- To: xml-dev <xml-dev@lists.xml.org>
- Date: Thu, 24 May 2001 10:41:17 +0100
If I use a DTD to give an attribute a #FIXED value, does that mean:
(a) If attribute not given in instance, a parser will not return the
attribute?
or
(b) The attribute will always be returned, even if it is not in the
instance?
If the answer is (b), how would I get the semantics of having "false"
as a default value and "true" (or "true | "false") being the only
allowed value(s) in the instance? (I tried defining is as an
enumeration of "true" | "false", but that would not let me put a
default value on it).
Is my best bet just to make it an optional attribute and simply treat
its presence (with any value) as meaning True, and absence meaning
False?
--
May the flares be with you,
Kevin mailto:xmldude@burieddreams.com
+++++++++++++ Cool music - http://mp3.com/marshan
++ Attitude Rock Webzine - http://burieddreams.com/attitude