cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@sundn.de>
Subject AW: Bug in TraxTransformer resolve()??
Date Fri, 01 Jun 2001 06:20:06 GMT
> Rob Moffat wrote:
>
> I have been having some problems with the TraxTransformer
> resolving URL's in
> XSL when using <xsl:import>.
> I am using my own URLFactory class, so this is why this problem has shown
> up.
The current cvs version of C2 doesn't set the URIResolver at all
as there are some problems with the base argument passed to the resolve
method. So your own URLFactory will currently not work.
But I think I can make a fix today for this.

>
> There are two problems (I think) in TraxTransformer.java,
>
> line 264 should read lastIndexOf('/') rather than indexOf('/'), I think.
>
Yes, absolutely. I have fixed this. Thanks.

> and there is a call to new java.net.URL(base) on line 252.  I think this
> should be using the URL factory component to resolve its URL instead of
> creating a new one.
>
Hm, probably you are right. I think we can forget creating a new url at all.
I fixed this, too.


Carsten

Open Source Group                        sunShine - b:Integrated
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de                          mailto: cziegeler@sundn.de
================================================================


> Its home time, so I haven't had time to patch this myself today, but if I
> come up with something that works okay, I'll post it.  Has anyone else had
> problems with this???
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message