Export (0) Print
Expand All

2.2.10 [XML] Section 3.3, Attribute-List Declarations

C0014:

The specification states:

 Definition: Attribute-list declarations specify the name, data type, and default value (if any) of each attribute associated with a given element type:] 
  
 Attribute-list Declaration
 [52]   AttlistDecl   ::=   '<!ATTLIST' S Name AttDef* S? '>'
 [53]   AttDef   ::=   S Name S AttType S DefaultDecl 
  
 The Name in the AttlistDecl rule is the type of an element. At user option, an XML processor MAY issue a warning if attributes are declared for an element type not itself declared, but this is not an error. The Name in the AttDef rule is the name of the attribute.

IE9 Mode, IE10 Mode, IE11 Mode, and EdgeHTML Mode (All Versions)

No warning is issued when an attribute is declared for an element type that has not been declared.

C0015:

The specification states:

 When more than one AttlistDecl is provided for a given element type, the contents 
 of all those provided are merged. When more than one definition is provided for 
 the same attribute of a given element type, the first declaration is binding and 
 later declarations are ignored. For interoperability, writers of DTDs may choose 
 to provide at most one attribute-list declaration for a given element type, at 
 most one attribute definition for a given attribute name in an attribute-list 
 declaration, and at least one attribute definition in each attribute-list 
 declaration. For interoperability, an XML processor MAY at user option issue a 
 warning when more than one attribute-list declaration is provided for a given 
 element type, or more than one attribute definition is provided for a given 
 attribute, but this is not an error.

IE9 Mode, IE10 Mode, IE11 Mode, and EdgeHTML Mode (All Versions)

No warning is issued when more than one attribute-list declaration is provided for an element type or more than one attribute definition is provided for a given attribute.

Show:
© 2016 Microsoft