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

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

    XMLWordPrintable

Details

    • Integration
    • N/A
    • N/A
    • Pull Request accepted

    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

              MichaelHamann Michael Hamann
              tmortagne Thomas Mortagne
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: