You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by is...@cocoondev.org on 2005/03/01 14:02:42 UTC

[JIRA] Closed: (FOR-345) Accent in toc : broken links

Message:

   The following issue has been closed.

   Resolver: Ross Gardler
       Date: Tue, 1 Mar 2005 7:02 AM

Patch applied - thanks
---------------------------------------------------------------------
View the issue:
  http://issues.cocoondev.org//browse/FOR-345

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: FOR-345
    Summary: Accent in toc : broken links
       Type: Bug

     Status: Closed
   Priority: Minor
 Resolution: FIXED

    Project: Forrest
 Components: 
             Core operations
   Fix Fors:
             0.7
   Versions:
             0.6

   Assignee: Ross Gardler
   Reporter: Frédéric Deniger

    Created: Tue, 2 Nov 2004 4:19 AM
    Updated: Tue, 1 Mar 2005 7:02 AM
Environment: 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



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org//secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira