Next in thread → Next in month →

Re: [office] proposal to solve problem with attribute style:default-outline-level

From
Dave Pawson <>
Date
2007-02-21T10:38:07+00:00
ID
Thread
Re: [office] proposal to solve problem with attribute style:default-outline-level
On 21/02/07, David Faure <> wrote:

> The concept of inheriting styles is also that the derived style can override any attribute
> of its parent. Otherwise it's just an alias, not a derived style ;)
>
> For many other attributes we already have a way to model "the parent wants <foo>
> but I want <none>", I think it makes sense to add "none" for any attribute that doesn't
> have it, if the attribute is not mandatory in the first place (i.e. when a style without that
> attribute is allowed, and a derived style must therefore have a way to revert to "I don't
> have this attribute).

You could consider the namespace model of inheritance (not reversion though).

attribute="" would then override the ancestors attribute="something" value,
without using 'none', and vice versa, unless a default is set at the root
or by some other method.

regards





-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
Next in thread → Next in month →