← Prev in month ← Prev in thread

Defaults

From
David A. Wheeler <>
Date
2007-09-27T21:22:51+00:00
ID
Thread
Defaults
> Default values for formatting attributes at the schema level
> Problematic because not supported by RelaxNG
> Would conflict with style inheritance. Properties are inherited from 
> parent styles. A default value would get in the way of inheritance.
> The solution may thus be to define the fallbacks which apply when a 
> property isn't defined anywhere in the hierarchy.

Rather than specifying the defaults using RelaxNG - which would interfere with style inheritance implemented by OpenDocument - why not define the OpenDocument defaults using the _OpenDocument_ format itself?

You could claim that all styles inherit from some RootStyle (need a better name), and then include a definition of RootStyle (for the values you cared about) using the OpenDocument spec itself.

Or am I missing something?

--- David A. Wheeler
← Prev in month ← Prev in thread