forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Autumn Cuellar <a.cuel...@auckland.ac.nz>
Subject Re: Link Rewriter: customizable?
Date Mon, 26 Jan 2004 22:45:16 GMT
Can anyone point me in the direction of documentation for the link 
rewriter or direct me to the author of the java class 
LinkRewriterTransformer? Any help would be highly appreciated.

Best wishes,
Autumn

Autumn Cuellar wrote:
> I have another question: is it possible to customize the link rewriter? 
> I really like having the ability to keep link destinations all in one 
> place. My attempt to hack the code in the most obvious way possible 
> looked like this (again, am trying to use DocBook to document my 
> website, thus the need for the link rewriter to look for different 
> attributes):
> 
>       <map:transformer name="dblinkrewriter" 
> logger="sitemap.transformer.linkrewriter" 
> src="org.apache.cocoon.transformation.LinkRewriterTransformer">
>         <link-attrs>url linkend</link-attrs>
>         <schemes>site ext</schemes>
> 
>         <input-module name="site">
>           <input-module name="linkmap">
>             <file src="{src}" reloadable="true" />
>           </input-module>
>           <prefix>/site//</prefix>
>           <suffix>/@href</suffix>
>         </input-module>
>         <input-module name="ext">
>           <input-module name="linkmap">
>             <file src="{src}" reloadable="true" />
>           </input-module>
>           <prefix>/site/external-refs//</prefix>
>           <suffix>/@href</suffix>
>         </input-module>
>       </map:transformer>
> 
> Should this work? Is my problem elsewhere? Thanks for any suggestions 
> you might have.
> 
> Cheers,
> Autumn
> 




Mime
View raw message