OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DTD fixed attributes



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