Can't apply paragraph styles

Asked by Scott Willman on 2011-01-05

I'm trying to apply styles in xhtml using the "class" attribute with no success. My xhtml looks like this:

<ul class="myStyle">
    <li class="myStyle">item1</li>
    <li class="myStyle">item2</li>
    <li class="myStyle">item3</li>
    <li class="myStyle">item4</li>
</ul>

Where "myStyle" is defined in the document and used in a list that isn't dynamic (so that it gets saved with the doc). It also doesn't show up in the renderer.getStyles() list.

As a side note, as I was trying to debug I was attempting to specify classes that are default, but many of them have spaces in the names. The doesn't work in the "class" attribute because that generally means you're specifying a list of classes.

Thanks guys,
-Scott

Question information

Language:
English Edit question
Status:
Answered
For:
Appy Edit question
Assignee:
No assignee Edit question
Last query:
2011-01-05
Last reply:
2011-01-18

Hi Scott,

Sorry for the delay.
Yes indeed, for the moment it is not possible to apply classes on ol, ul and li elements. This is because OpenOffice list styles are more complex to express and manage than text styles. So consider this as being a bug at present.

Considering your side note: OpenOffice styles have an "id" and a "public name". The id can't contain any space: this is the one that must be used in the styles mapping. Try to call renderer.getStyles to have a detailed information about the styles that are present in your template. (renderer being an instance of appy.pod.renderer.Renderer).

Hope this helps!
Gaetan

Can you help with this problem?

Provide an answer of your own, or ask Scott Willman for more information if necessary.

To post a message you must log in.