Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-433

Document.updateXMLIds(...) does not update referenced id's

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6.2-incubating
    • 0.6.2-incubating
    • simple api
    • None

    Description

      The function void

      org.odftoolkit.simple.Document.updateXMLIds(OdfElement element)

      assigns a modified value to all xml:id-attributes inside the OdfElement.
      If there are references text:continue-list to one of the modified xml:id this reference wiill not be updated.

      The consequence is:

      If You will insert a Section containing interupted lists into a document by:

      TextDocument.appendSection(Section section, ...)

      the information text:continue-list will be lost. In the copy the interupted list will start again with number '1'

      I attached a proposal for a fix. I hope the formatting correspondes to your standard now.

      I attach document with some more detailled explanation.

      Attachments

        1. explanation.odt
          17 kB
          Georg Füchsle
        2. proposal.diff
          100 kB
          Georg Füchsle
        3. SectionContinuedList.odt
          13 kB
          Georg Füchsle

        Activity

          People

            svanteschubert Svante Schubert
            giofyxle Georg Füchsle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: