cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject Re: [C2]: EntityResolver or URLFactory ?
Date Mon, 09 Apr 2001 20:37:25 GMT


On Mon, 9 Apr 2001, Carsten Ziegeler wrote:

> Hi,
>
> seeing the different questions in the mailing list and looking through
> the sources of some generators I am a little bit confused, where to
> use the EntityResolver and where the URLFactory.
>
> E.g. the FileGenerator uses the EntityResolver to resolve its source
> whereas the HTMLGenerator uses the URLFactory.
> If I understood Giacomo's email, the EntityResolver has to be used,
> because it is the only object which can handle subsitemaps, but
> the EntityResolver is not able to handle urls, like "resource://".
>
> Even worse, the URLFactoryImpl does not handle files which do not exists
> correctly. If you use "test.xml" as an input to the URLFactoryImpl and
> "cocoon/test.xml" does not exists, the URLFactoryImpl does not use the
> Context-Root for this file, but assumes that it is already absolute.
>
> For me, it seems the only working solution is to merge both approaches,
> that the EntityResolver uses internally the URLFactory.

You are probably right. The problem is that the URLFactories live inside
the component framework whereas the Environments do not. So there is
more to come than just a "combine".

Giacomo

>
> Or did I oversee something?
>
> Carsten
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>


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


Mime
View raw message