Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-6

Id are not unique when included document has the same headers as the top document

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Rendering in the platform
    • Fix Version/s: None
    • Labels:
      None
    • Similar issues:

      Description

      Included document should use the same IdGenerator than root document.

      Here are some solutions:

      1. an api to provide the IdGenerator to the parser and make include macro give the root document IdGenerator to the parser
      2. store the IdGenerator in the Execution context (but this means add another dependency to rendering module)
      3. regenerate included XDOM ids in the include macro
      4. re-check and fix all ids in the renderer (which means all renderers need to take care of that)
      5. completely remove ids from XDOM/parsers and generate then in the renderer (but this mean we need to find another way to support internal link to other blocks, we already tried that...)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tmortagne Thomas Mortagne
              • Votes:
                4 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Date of First Response: