Uploaded image for project: 'Forrest (Retired)'
  1. Forrest (Retired)
  2. FOR-345

Accent in toc : broken links

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.6
    • 0.7
    • Core operations
    • None
    • Any

    Description

      I have some problems with the toc. I use accents for my title and the links generated in the TOC for these titles are broken.

      My source code is :
      |<section>
      |<title>Cassé</title>

      The Toc generated is

      |"<a href="#Cass%E9s">Cassé</a>"

      This link can't be used.

      I found a solution : I modified the file sitmap.xmap (line 90-94)
      The initial source is
       |<!-- Generates @id attributes from <title> strings -->
       | <map:transformer name="idgen"
       |src="org.apache.cocoon.transformation.IdGeneratorTransformer">
       | <element>//*[local-name() = 'section']</element>
      *| <id>title/text()</id>
       | </map:transformer>

      My change :
       |<!-- Generates @id attributes from <title> strings -->
       | <map:transformer name="idgen"
       | src="org.apache.cocoon.transformation.IdGeneratorTransformer">
       | <element>//*[local-name() = 'section']</element>
      *| <id>generate-id()</id>
       | </map:transformer>
      The changed line begins with '*'.
      This is the simplest workaround I found.
      HTH.
      Fred

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--patch.txt
          2 kB
          Cyriaque Dupoirieux

        Activity

          People

            rgardler Ross Gardler
            deniger Frédéric Deniger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: