Details

    • Type: Bug
    • Status: Applied
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: ODF 1.2
    • Fix Version/s: ODF 1.2
    • Component/s: General
    • Labels:
      None
    • Proposal:
      Hide

      Replace the first sub sentence of the paragraph cited in the description with:


      If a foreign element

      • has a <text:h> or <text> ancestor element, and
      • is a child element of an element which may include <text/>, and
      • if all its ancestor elements up to the <text> and <text:h> element also allow text content,
        then [...]
      Show
      Replace the first sub sentence of the paragraph cited in the description with: — If a foreign element has a <text:h> or <text > ancestor element, and is a child element of an element which may include <text/>, and if all its ancestor elements up to the <text > and <text:h> element also allow text content, then [...]
    • Resolution:
      Hide

      If a foreign element:
      has a <text:h> or <text> ancestor element, and
      is a child element of an element which may include <text/>, and
      if all its ancestors up to the <text> or <text:h element> ancestor element also allow for <text/>,

      Show
      If a foreign element: has a <text:h> or <text > ancestor element, and is a child element of an element which may include <text/>, and if all its ancestors up to the <text > or <text:h element> ancestor element also allow for <text/>,

      Description

      The document processing section in ODF 1.2 CD02 REV01 says:


      If a foreign element has a <text:h> or <text> ancestor element and is a child element of an element which may include <text/>, then the element's content may be interpreted by conforming OpenDocument processors, and the document itself shall be valid against the OpenDocument schema if the unknown element is replaced with its content only.


      What is missing is a requirement that also the ancestor elements of the foreign element up to <text:h> or <text> must include text.

      Reason is that the processing of foreign elements described here shall apply to all those elements that constitute the paragraph's text. That's for instance the <text> element and its <text:span> child elements. But the rules shall not apply to elements that may appear in a paragraph, but do not contain its text content, like <text:frame>. Without the additional requirement, they would be applied to for instance a <svg:desc> within a <text:frame>, because <svg:desc> allows <text/> and has a <text> ancestor>. With the additional requirement, the special processing of foreign element stops at <text:frame>, because this element does not allow <text/>.

        Attachments

          Activity

            People

            • Assignee:
              patrick Patrick Durusau
              Reporter:
              michael.brauer Michael Brauer (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: