A method of formatting a computer-readable document including a plurality
of objects having directly-assigned attributes includes detecting the
objects having directly-assigned attributes, creating a conversion style
element for every detected combination of directly-assigned attributes,
and replacing the directly-assigned attributes by a reference to the
corresponding conversion style element. A change of a particular
attribute throughout the entire document can thus be carried out simply
by changing the conversion style elements in which this attribute
appears.