OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

oic message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Interoperability Scenario: Color of List Label


I have got an interesting ODF list label scenario, that might be a nice case for an ODF plugfest as well.

I have created a valid test document, where the color of the list label each time different, when opened by the latest version of three ODF application.

This interoperability issue can occur as the label of a list - the area where the numbering, bullet or image is located - receives its text properties from three different locations.
First of all a list is related with a paragraph style, which can have text style properties. I used "blue" and to me this seems as the valid fall-back, if no label color has been set.

The list has a list style (Note: the given ODF XML is shorted for clarity)
<text:list text:style-name="L1">
    <text:list-item>
        <text:p text:style-name="P1">...</text:p>
    </text:list-item>
</text:list>

The list style is referenced by a paragraph style:
<style:style style:name="P1" style:family="paragraph" style:list-style-name="L1">
    <style:text-properties fo:color="#0000FF" />
</style:style>

Unfortunately - for the application rendering the label to blue - there the list style of the used list level
<text:list-style style:name="L1">
    <text:list-level-style-number text:level="1" text:style-name="Numbering_20_Symbols" >...</text:list-level-style-number>
</text:list-style>

which is referencing to a text style to a template text style adding a green color.
<style:style style:name="Numbering_20_Symbols" style:family="text">
    <style:text-properties fo:color="#00FF00" />
</style:style>

Somehow better. But ODF still allows to add text:properties to every text:list-level-style-number element and the cascading rules for overwriting tell us that a local style overrules the referenced one.
<text:list-level-style-number text:level="1" text:style-name="Numbering_20_Symbols" >
    <style:text-properties fo:color="#FF0000"/>
</text:list-level-style-number>

Therefore from my point of view the labels should be red!
If there is doubt in clarity, we should move this as a problem to the ODF TC as well.

I have used the list styles once as automatic and once as template styles, but it do not make a difference, just provided the both versions of the document for others to test:

https://dl.dropbox.com/u/49473263/ListTest_AutomaticListStyles_AllDifferent.odt
https://dl.dropbox.com/u/49473263/ListTest_TemplateListStyles_AllDifferent.odt

I edited the XML manually after creating the ODF with an application.
To proof the validness with a local installed ODF validator from ODF Toolkit. If someone is interested in a validator as well just follow the how-to from one of the plugfests.

Enjoy the testing,
Svante


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]