Re: Content v. attribute

Paul Prescod (papresco@technologist.com)
Mon, 26 Oct 1998 06:36:09 -0500


"Vrijland, Jacco TRC-OGRS/2" wrote:
>
> Maybe you can provide me with some reasons why one of the two would be
> preferable over the other. Or with references as to where I can find out
> myself.

http://www.oasis-open.org/cover/elementsAndAttrs.html

"A perennial question arising in the mind of SGML/XML DTD designers is
whether to model and encode certain information using an element, or
alternatively, using an attribute. For example, given some information
about the 'title' of a work and the goal of encoding this information in
markup, which of the two encodings is preferable, and what principles can
be used to decide?"

Paul Prescod - http://itrc.uwaterloo.ca/~papresco

Marge: "It's almost as if Snake is killing from beyond the grave."
Lisa: "I told you that capital punishment isn't a deterrent."
- Simpson's halloween special