Daniel Fagerstrom napisaƂ(a):
>> 2. Would you be happy if I rewritten it from scratch with
>> back-compatibility in mind?
>
> Yes.

I've done it already, but assumed that answer to the point three will be
"yes". My bad, but I'll try to adjust the code to the Java 1.4.
>
>> 3. If so, would be happy if I used Java 1.5 features?
>
> No, Cocoon 2.2 is supposed to work with Java 1.4. We had a vote about
> it some while ago.

Ok, I'll live with it somehow...
>
>> Or do you have better options?
>
> Maybe it would be a better idea to write a special purpose link
> rewriter for the block protocol. Where you only configure what
> attributes to rewrite. Looking at the code for the link rewriting
> transformer, the actual work is just a few rows. Most of it is about
> handling all the bewildering amount of configuration options.
Too late ;-)
I've just successfully configured standard LinkRewriteTransformer. I've
had to write my own input module for string concatation, though. Is
there any obvious benefit of writing our own transformer?
cocoon-linkrewriter-impl block has no additional dependencies,
configuration of it is clean and straightforward, finally, user does not
have to configure it in its sitemaps again and agin. Wait with your
response until I polish and submit the code I already have.

-- 
Grzegorz Kossakowski

Reply via email to