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

 


Help: OASIS Mailing Lists Help | MarkMail Help

office message

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


Subject: [OASIS Issue Tracker] Updated: (OFFICE-3346) Is Part 1, Section16.2 correct about style resolution?



     [ http://tools.oasis-open.org/issues/browse/OFFICE-3346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Brauer updated OFFICE-3346:
-----------------------------------

    Resolution: 
In 16.2, change the following paragraph
---
For styles where the style:family attribute 19.478 has the value text, applied to an descendant elements of a paragraph which defines character content 6.1.1, the paragraph style applied to the paragraph containing those elements is searched for the formatting property. If the formatting property is not found, the parent styles, if any, of the style applied to the containing paragraph are searched until the formatting property is found or a style is found with no parent style.
---
to
---
For styles with family text which are applied to elements which are contained in another element that specifies a style with family text, the search continues within the text style that is applied to the nearest ancestor element that specifies a style with family text, and continues in its parent styles.

For styles with family text which are applied to elements which are contained in a paragraph element 6.1.1, the search continues within the paragraph style that is applied to the paragraph element, and continues in its parent styles.
---

Added a resolution for this issue.

> Is Part 1, Section 16.2 correct about style resolution?
> -------------------------------------------------------
>
>                 Key: OFFICE-3346
>                 URL: http://tools.oasis-open.org/issues/browse/OFFICE-3346
>             Project: OASIS Open Document Format for Office Applications (OpenDocument) TC
>          Issue Type: Bug
>          Components: Part 1 (Schema), Public Review, Styles
>    Affects Versions: ODF 1.2 CD 05
>            Reporter: Robert Weir 
>            Assignee: Michael Brauer
>             Fix For: ODF 1.2 CD 06
>
>
> As posted by Jos on mailing list:
> Today I was reading paragraph 16.2 of OpenDocument-v1.2-cd05-part1-editor-
> revision_01.odt.
> I tried to deduce how to resolve certain properties for certain ODF fragments.
> <text:p text:style-name='A'>
>   <text:span text:style-name='B'>
>     <text:span text:style-name='C'>
>       Hello
>     </text:span>
>   </text:span>
> </text:p>
> Assume that styles A, B and C have no parent styles and both A and B determine 
> fo:font-size at 10 and 20 respectively. If I follow the instructions in 16.2, 
> I would conclude that 'Hello' should be shown with font-size 10, since the 
> instructions there say that if the style on the element does not define a 
> property, next one should look at the style for the containing paragraph, 
> thereby skipping style 'B'. That seems wrong to me.
> This is the relevant instruction:
> "For styles where the style:family attribute 19.478 has the value text, 
> applied to an descendant elements of a paragraph which defines character 
> content 6.1.1, the paragraph style applied to the paragraph containing those 
> elements is searched for the formatting property."

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


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