REC-xml-19980210: default attribute values

Richard Emberson emberson at faslab.com
Thu Oct 15 00:12:38 BST 1998


Section 3.3.2:

  "If a default value is declared, when an XML processor encounters 
  an omitted attribute, it is to behave as though the attribute 
  were present with the declared default value."

Section 2.9, Validity Constraint: Standalone Document Declaration:

  "...attributes with default values, if elements to which
  these attributes apply appear in the document without
  specifications of values for these attributes,..."


If the XML processor always automatically produces such
attributes with their default values when they are missing, 
how can the Validity Constraint ever be true?

Does the checking of this Validity Constraint occur before
the XML processor makes its correction?


Richard Emberson
emberson at faslab.com

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list