Uploaded image for project: 'OASIS Open Document Format for Office Applications (OpenDocument) TC'
  1. OASIS Open Document Format for Office Applications (OpenDocument) TC
  2. OFFICE-4010

<text:conditional-text> allows text content but no rule on how to process

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: ODF 1.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Proposal:
      Hide

      <rng:element name="text:conditional-text">

      <rng:ref name="text-conditional-text-attlist"/>

      </rng:element>

      Show
      <rng:element name="text:conditional-text"> <rng:ref name="text-conditional-text-attlist"/> </rng:element>
    • Resolution:
      Hide

      Close - text in element is displayed when consumer can't evaluate the condition. Don't know if true or false but what is to be displayed.

      Show
      Close - text in element is displayed when consumer can't evaluate the condition. Don't know if true or false but what is to be displayed.

      Description

      7.7.3<text:conditional-text> Reads:

      *****

      The <text:conditional-text> element specifies a condition for display of one text string or another. If the condition is true, one of the text strings is displayed. If the condition is false, the other text string is displayed.

      *****

      OK, but the content model says:

      *****

      The <text:conditional-text> element has the following attributes: text:condition 19.782.2, text:current-value 19.791, text:string-value-if-false 19.878 and text:string-value-if-true 19.879. The <text:conditional-text> element has no child elements. The <text:conditional-text> element has character data content.

      *****

      So why does it have content? What happens to its content? Suggest we make this an empty element.

      Presently reads:

      <rng:element name="text:conditional-text">

      <rng:ref name="text-conditional-text-attlist"/>

      <rng:text/>

      </rng:element>

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              patrick Patrick Durusau
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: