[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

DTD fixed attributes

  • From: Kevin Burges <xmldude@b...>
  • To: xml-dev <xml-dev@l...>
  • Date: Thu, 24 May 2001 10:41:17 +0100

dtd fixed
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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.