-
Type: Bug
-
Status: Applied
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: ODF 1.2 CD 05
-
Fix Version/s: ODF 1.2 CD 06
-
Component/s: Part 3 (Schema) [1.2: 1], Public Review, Table
-
Labels:None
-
Proposal:
-
Resolution:
The description for 9.4.8 contradicts the schema and the possibilities of the <office:event-listeners> element.
The contradictory text and unimplementable cases start with this text in 9.4.8:
"""
"The <table:error-macro> element specifies if a macro should be executed upon an attempt to enter invalid content.
Such a macro is specified by an <office:event-listeners> element. 14.4 The event name shall be one that specifies an event that is called on invalid user input.
"""
Problem 1: The presence of a <table:error-macro> element in a <table:content-validation> element prevents the presence of a <table:error-message> element according to the current schema. There is therefore no means to determine whether a validation failure is merely informational or a warning.
Problem 2: However, the <table:error-macro> table:execute attribute can specify that the macro is not to be executed. In this case, it appears that validation can silently fail.
Problem 3: According to the schema for <table:content-validation>, it is optional for an <office:event-listeners> element to accompany the <table:error-macro> element. This appears to contradict the shall provision and the need to specify an appropriate macro.
Problem 4: It would appear that the only meaningful case of <office:event-listeners> is with one or more (optional) <script:event-listener> elements.
Problem 5: There is no defined script:event-name defined in the schema, in section 19.431, or in [DOMEvents2] establisehd for "invalid user input" (see above), so there is no specified way for the shall to be honored.