[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@b... +++++++++++++ Cool music - http://mp3.com/marshan ++ Attitude Rock Webzine - http://burieddreams.com/attitude
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|