-
Type:
Improvement
-
Status: Applied
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: ODF 1.2 Part 1 CD 4
-
Fix Version/s: ODF 1.2 Part 1 CD 5
-
Component/s: Schema and Datatypes
-
Labels:None
-
Proposal:
-
Resolution:
The 19.779 text:condition and 19.807 text:formula attributes are of datatype "formula"
"The attribute value should begin with a namespace prefix followed by ":" (COLON, U+003A) followed by the text of the formula. The namespace bound to the prefix determines the syntax and semantics of the formula. "
The 19.644 table:formula attribute is of datatype "string", while the description is the same
"The attribute value should begin with a namespace prefix followed by ":" (COLON, U+003A), followed by the text of the formula. The namespace bound to the prefix determines the syntax and semantics of the formula.
The table:formula attribute specifies a spreadsheet formula, while text:formula and text:condition specify formulas in a text document. While the attributes have in common that they may or should start with a namespace prefix, the formulas themselves are different. I therefore suggest that we don't use the same datatype for the attribute values, because that could be misunderstood. It may lead to the impression that a formula in a text field must be a spreadsheet formula. That is clearly not the case.
However, it appears not be be reasonable to have a "formula" datatype for the text attributes, but none for table:formula. Because "formula" is defined as string in the schema, I suggest that we remove the formula datatype, and use "string" directly instead.