forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fred Deniger <frederic.deni...@ifrance.com>
Subject Re: accent in toc and customizing sitemap.xmap
Date Thu, 21 Oct 2004 08:18:44 GMT
David Crossley wrote:

>Fred wrote:
>  
>
>>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.
>>    
>>
>
>Try using a specific <section id="blah">
>  
>
Yes , but the files I used are written with openOffice.
I've found a workaround :
I've modified openoffice-writer2forrest.xsl  in order to add an id for 
each section.
Thanks for your help

>>To resolve this problem, I'd like to make some changes in the 
>>sitemap.xmap file.
>>The initiale source is  (lines 90-94)
>>
>>|<!-- 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>
>>
>>
>>by my own code
>>
>>|<!-- 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>
>>
>>
>>How can I do this ? (I use the last Forrest version from svn)
>>TIA
>>Regards,
>>Fred
>>
>>    
>>
>
>_____________________________________________________________________
>
>Envie de discuter gratuitement avec vos amis ?
>Téléchargez Yahoo! Messenger http://yahoo.ifrance.com
>
>  
>


Mime
View raw message