Attribute Types
===============
Basic types for attributes are names and values. (See note about
names in Note:Types.) And attribute values (attval) by lisp strings.
Attribute Declaration List Type
-------------------------------
- Data type: attlist attdecl*
This is the result of the ATTLIST declarations in the DTD. All
attribute declarations for an element is the elements attlist.
- Function: sgml-lookup-attdecl name attlist
Return attribute declaration (attdecl) for attribute NAME in
attribute declaration list ATTLIST.
- Function: sgml-attribute-with-declared-value attlist declared-value
Find the first attribute in ATTLIST that has DECLARED-VALUE.
Attribute Declaration Type
--------------------------
- Data type: attdecl name declared-value default-value
This is the representation of an individual attribute declaration
contained in an ATTLIST declaration.
- Function: sgml-make-attdecl name declared-value default-value
Produces an attdecl.
- Function: sgml-attdecl-name attdecl
Returns the name of an attribute declaration.
- Function: sgml-attdecl-declared-value attdecl
Returns the declared-value of attribute declaration ATTDECL.
- Function: sgml-attdecl-default-value: attdecl
Returns the default-value of attribute declaration ATTDECL.
Declared Value Type
-------------------
- Data type: declared-value (token-group | notation | simple)
A declared value of an SGML attribute can be of different kinds.
If the declared value is a token group there is an associated list
of name tokens. For notation there is also a list of associated
names, the allowed notation names. The other declared values are
represented by the type name as a lisp symbol.
- Function: sgml-declared-value-token-group declared-value
Return the name token group for the DECLARED-VALUE. This applies
to name token groups. For other declared values nil is returned.
- Function: sgml-declared-value-notation declared-value
Return the list of notation names for the DECLARED-VALUE. This
applies to notation declared value. For other declared values nil
is returned.
Default Value Type
------------------
- Data type: default-value (required | implied | conref | specified )
There are several kinds of default values. The REQUIRED, IMPLIED,
and CONREF has no associated information. The SPECIFIED have an
associated attribute value and can be either `fixed' or `normal'.
- Function: sgml-make-default-value type &optional attval
- Function: sgml-default-value-attval default-value
Return the actual default value of the declared DEFAULT-VALUE.
The actual value is a string. Return `nil' if no actual value.
- Function: sgml-default-value-type-p type default-value
Return true if DEFAULT-VALUE is of TYPE. Where TYPE is a symbol,
one of `required', `implied', `conref', or `fixed'.
Attribute Specification Type
----------------------------
- Data type: attspec name attval
This is the result of parsing an attribute specification.
- Function: sgml-make-attspec name attval
Create an attspec from NAME and ATTVAL. Special case, if ATTVAL
is `nil' this is an implied attribute.
- Function: sgml-attspec-name attspec
Return the name of the attribute specified by ATTSPEC.
- Function: sgml-attspec-attval attspec
Return the value (attval) of attribute specification ATTSPEC. If
ATTSPEC is `nil', `nil' is returned.
Attribute Specification List Type
---------------------------------
- Data type: asl attspec*
This is the result of parsing an attribute specification list.
- Function: sgml-lookup-attspec name asl
Return the attribute specification for attribute with NAME in the
attribute specification list ASL. If the attribute is unspecified
`nil' is returned.