← Prev in month ← Prev in thread
Next in thread → Next in month →

Could ODF support anonymous styles?

From
Di Hua Zhang <>
Date
2010-09-03T06:32:59+00:00
ID
Thread
Could ODF support anonymous styles?
Hi, 

  we are using xslt to generate odt component files(like content.xml, styles.xml, manifest.xml...) and zip them into *.odt with

ant script. 

  During the generation, I found it inconvenient to add a style to an element dynamically, based on Open Office Spec of OASIS,

one should first create a named style and then reference it with @text:style-name of an element.

(e.g <text:p text:style-name="indent_paragraph_style"/>), but sometimes styles' content is depended on user's input and it cannot be

created with a name before-hand. So I suggest whether odf standard could support anonymous styles, like css styles in html?

e.g

<text:p text:style="color:red;background-color:white;font-weight:bold;">

	

</text:p>

means the paragraph's font color is red and bolded, background-color is white?

We are using OASIS Open Office Specification V1.1.

Regards.
← Prev in month ← Prev in thread
Next in thread → Next in month →