[Home] [By Thread] [By Date] [Recent Entries]

  • From: Kevin Burges <xmldude@b...>
  • To: xml-dev <xml-dev@l...>
  • 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@b...

+++++++++++++ Cool music - http://mp3.com/marshan
++ Attitude Rock Webzine - http://burieddreams.com/attitude



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member