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-3029) Needs-Discussion:19.598: Table:Condition - location of namespace prefix seems scopedincorrectly



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

Patrick Durusau commented on OFFICE-3029:
-----------------------------------------

The text in this case is a forest of errors.

First, I think condition = Boolean expression. That is the "defined conditions" (note the format error in the second paragraph, should be line break after "conditions are:" and "cell-content-text-length() op value" should be the first item in the list (separate JIRA issue on that one).

Second, conditions may be preceded by namespaces, that is the ones listed. Not clear if other conditions are allowed or not.

Third, if no namespace, then default to the opendocument namespace.

Fourth, the name space controls the semantics, not of the condition but of any value1 or value2 as an expression, which are defined by part 2.

Just trying to be clear at this point. 

Taking cell-count-text-length-is-between(value1, value2) as a "Boolean expression," the text requires if no namespace given:

text:condition ="of:cell-count-text-length-is-between(value1, value2)"

Therefore, the namespace never appears within the Boolean expression but governs any expression that appears as value1 or value2.

Without saying how we should fix it, does anyone disagree with this reading? 

> Needs-Discussion: 19.598: Table:Condition - location of namespace prefix seems scoped incorrectly
> -------------------------------------------------------------------------------------------------
>
>                 Key: OFFICE-3029
>                 URL: http://tools.oasis-open.org/issues/browse/OFFICE-3029
>             Project: OASIS Open Document Format for Office Applications (OpenDocument) TC
>          Issue Type: Bug
>          Components: OpenFormula
>    Affects Versions: ODF 1.2 CD 05
>            Reporter: Eric Patterson
>
> In section 19.598, it has the following text: "The value of this attribute should be a namespace prefix, followed by a ":" (COLON, U+003A), followed by Boolean expression. ".  This implies placing the namespace prefix at the beginning of the condition string, immediately preceding the condition.  For example:
> table:condition="of:cell-content-is-decimal-number() and cell-content-is-between(1,[.B1])"
> Given that the OF namespace specifies the syntax for an expression used as a value in a condition, is this the best place for it?  Should it be as follows instead?
> table:condition="cell-content-is-decimal-number() and cell-content-is-between(1,of:[.B1])"

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