Hi Bob

2012/5/16 Bob Harrod <rjhar...@gmail.com>

> I'm rending html in a transform, and would like to render an anchor who's
> href is absolute, not relative.  For example, instead of this:
>
> <a href="../home">...</a>
>
> I would like to be able to provide a full url in the href:
>
> <a href="http://mysite/application1/home";>...</a>
>
> Thank you for your assistance with this!
>

I think that you want to use the LinkRewriterTransformer

http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/transformation/LinkRewriterTransformer.html

I hope that it's helps.

Salu2.


>
> On Wed, May 16, 2012 at 12:52 AM, Bob Harrod <rjhar...@gmail.com> wrote:
>
>> I'm quite new to cocoon, and supporting an older version (2.1).  Does
>> anyone know how I can gain access the web application base path inside of a
>> transform?  Of course, it can be passed by the sitemap...  Any help would
>> be appreciated!
>>
>> Thanks!
>>
>
>

Reply via email to