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] Commented: (OFFICE-1892) 17.471style:condition is a mess



    [ http://tools.oasis-open.org/issues/browse/OFFICE-1892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13516#action_13516 ] 

Michael Brauer commented on OFFICE-1892:
----------------------------------------

I've amended Michael's proposal:

The following conditions are valid for paragraph styles:
- list-level()=n, where n is a number: True if the style is applied to a paragraph or heading that is contained in a list on level n, or to a numbered paragraph on level  n.
- outline-level()=n, where n is a number:  True if the  if the style is applied to a heading on level n.
- table() and table-header():  true if the style is applied to a paragraph or heading that is contained in a table cell or table header cell.
- section(): True if the style is applied to a paragraph or heading that is contained in a text section.
- header() and footer(): True if the style is applied to a paragraph or heading that is contained in a page header or footer.
- footnote() and endnote(): True if the style is applied to a paragraph or heading that is contained in a footnote or endnote.
The following conditions are valid for table cell styles:
- is-true-formula(formula): True if the style is applied to a table cell for which formula evaluates true.
- cell-content-is-between(value1, value2): True if the style is applied to a table cell whose value is between value1 and value2.
- cell-content-is-not-between(value, value): True if the style is applied to a table cell whose value is not between value1 and value2.
- cell-content() op value, where op is one of the relational operators '<', '>', '<=', '>=', '=' or '!=': True if the style is applied to a table cell where the cell's value compared to the value specified in the condition by value using the relational operator op evaluates to true.
In the above conditions:
- value , value1 and value2 are a numberValue, a string or a formula.
- numberValue is a whole or decimal number. The number shall not contain comma separators for numbers of 1000 or greater.
- string comprises one or more characters surrounded by quotation marks.
- formula is a formula (see [ref to table:formula]) without the equals (=) sign at the beginning.
The following conditions are valid for data styles:
- value() op n, where, op is one of the relational operators '<', '>', '<=', '>=', '=' or '!=', and n is a number for non-Boolean data styles and  true or false for Boolean data styles: True if the style is applied to a table cell where the cell's value compared to the value specified in the condition by n using the relational operator op evaluates to true.

> 17.471 style:condition is a mess
> --------------------------------
>
>                 Key: OFFICE-1892
>                 URL: http://tools.oasis-open.org/issues/browse/OFFICE-1892
>             Project: OASIS Open Document Format for Office Applications (OpenDocument) TC
>          Issue Type: Bug
>          Components: General
>    Affects Versions: ODF 1.2
>         Environment: ODF 1.2 cd02
>            Reporter: Michael Stahl 
>            Assignee: Michael Brauer
>             Fix For: ODF 1.2
>
>
> <quote>
> The following conditions are valid for paragraph styles:
> * cell-content() operator value, where operator is one of; '<', '>', '<=', '>=', '=' or '!=', and value is a numberValue, a string or a formula.
> * cell-content-is-between(value, value)
> * cell-content-is-not-between(value, value)
> * endnote()
> * footer()
> * footnote()
> * A formula is a formula (see ) without the equals (=) sign at the beginning.
> * header()
> * is-true-formula(formula)
> * list-level()=n, where n is a number between 1 and 10
> * A numberValue is a whole or decimal number. The number cannot contain comma separators for numbers of 1000 or greater.
> * outline-level()=n, where n is a number between 1 and 10
> * section()
> * A string comprises one or more characters surrounded by quotation marks.
> * table()
> * table-header()
> The following conditions are valid for data styles:
> * value() op n, where op is a relational operator and n is a number.
> For Boolean styles the condition value must be true and false.
> <quote>
> problem 1: the list for paragraph styles also contains the items that apply to table cell styles in a completely mixed up way
> problem 2: the paragraph "For boolean styles ..." should be a list item under data styles, because boolean styles are data styles 
> problem 3: furthermore there is a broken reference:
> <quote>
> A formula is a formula (see )
> </quote>

-- 
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]