Re: Inheritance/defaulting of attributes

Paul Prescod (papresco@technologist.com)
Sat, 04 Oct 1997 04:10:07 -0400


Peter Murray-Rust wrote:
> Is this seen as a sufficiently general mechanism in XML that it is worth
> creating a DTD-independent engine for this?

This semantic can be expressed in the stylesheet language:

(element p
(make paragraph
font-color: (inherited-attribute-string "COLOR")))

I think that this is valid DSSSL code. I don't see much benefit in
moving this semantic into the markup language itself. There are others I
would add before this.

Paul Prescod