DCD and Global attributes.

Frank Boumphrey (bckman@ix.netcom.com)
Thu, 13 Aug 1998 12:09:22 -0400


Hi,
it is my understanding that an AttributeDef can take a attribute/value
Boolean of Global. For example in HTML nearly all elements can take the
attributes =93class, style, name, id, type etc.=94

If we were using DCD to define the HTML4 schema we could do the following

<DCD>
<AttributeDef Name=3D"class" DataType=3D"Data" Global=3D"True">
<AttributeDef Name=3D"style" DataType=3D"Data" Global=3D"True">

etc=85

Which mean that the attributes would apply to all the ElementDef=92s dec=
lared
in the <DCD> element simply by adding. Attribute=3D =93class=94

For example

<ElementDef Type=3D"DIV" attribute =3D =93class, style, etc>

(I assume that one can convert the attribute element in this way for the
second syntax form)

This could lead to a lot of repetious mark-up in a large document.

It struck me that it may be preferable to default every thing to the glob=
al
attributes, and provide a means of exempting elements that we do not wish
them to apply to.

Frank

Frank Boumphrey

XML and style sheet info at Http://www.hypermedic.com/style/index.htm
Author: - Professional Style Sheets for HTML and XML http://www.wrox.com