The IDLffXMLSAX::AttributeDecl procedure method is called when the parser detects an <!ATTLIST ...> declaration in a DTD. This method is called once for each attribute declared by the tag.

Syntax


Obj->[IDLffXMLSAX::]AttributeDecl, eName, aName, Type, Mode, Value

Arguments


eName

A string containing the name of the element for which the attribute is being declared.

aName

A string containing the name of the attribute being declared.

Type

A string that specifying the type of attribute being defined. Possible values are:

  • 'CDATA'
  • 'ID'
  • 'IDREF'
  • 'IDREFS'
  • 'NMTOKEN'
  • 'NMTOKENS'
  • 'ENTITY'
  • 'ENTITIES'

or two types of enumerated values. Enumerated values are encoded with parenthesized strings such as (a|b|c) to indicate that strings a, b, or c are permissible. If the string is an enumeration of notation names, the string "NOTATION " (note the space after the second “N”) precedes the parenthesized string.

Mode

A string specifying restrictions on the value of the attribute. Possible values are:

  • '#IMPLIED' - the application determines the value
  • '#REQUIRED' - the value must be given; defaulting is not permitted
  • '#FIXED' - only one value is permitted
  • '' - an empty string (the value specified by the Value argument is used as the default)

Value

A string containing the default value for the attribute. If Value contains an empty string, no default value was specified.

Keywords


None

Version History


5.6

Introduced