David Crossley wrote:

Enrico wrote:


I download remote xhtml files with a FileGenerator and
send lots of HTTP GET requests over the network to retrieve
the XHTML DTD/entities :(



Are they for XHTML1? If so, then Cocoon already has these by default so you don't need to configure anything. If you see network trips happening, then something is wrong with Cocoon.



However, I did configure the catalog (which includes all the
necessary stuff for XHTML)!



If it is for XHTML2, then Cocoon does not supply these and you will need to configure a local catalog.



Cocoon sees it at startup but still, goes over the network to fetch them



So you are seeing the messages from the Resolver because you have raised the verbosity level in cocoon.xconf. Do they list the DTDs that you are interested in? You may need to raise to verbosity=10 to get those.



I just used the default resources/entities/ tree that come which
cocoon-2.0.4 and put it in my web dir



You don't need to do that. Cocoon already supplies all of that when your webapp is built.



and have :

<resolver class="org.apache.cocoon.components.resolver.ResolverImpl">
 <parameter name="catalog" value="/resources/entities/catalog"/>
 <parameter name="verbosity" value="2"/>
</resolver>

in the cocoon.xconf.



You only need to edit this section of cocoon.xconf to increase the "verbosity" for testing or to add an *extra* catalog of your own, e.g to map an "Acme species list DTD" to a local DTD file. For this you would use the "local-catalog" parameter and not the "catalog" parameter as you have done. The "catalog" parameter is for Cocoon's default catalog.

I presume you have seen the documentation at
http://cocoon.apache.org/2.0/userdocs/concepts/catalog.html

--David




Thanks for your help.
I just jumped to cocoon-2.1 and everything's working fine now!
Nevertheless, I had some troubles with cocoon-2.4 : I am working with XHTML1 documents, and as you said the default
catalog should have shortcut all of those network xhtml1-DTD/entity resolving.
(I did not set up a local catalog, just used the main one).
It worked fine when 'FileGenerating' local XHTML pages, but not with
remote ones (weird?).
(I saw the network trip of the DTDs with a packet-capture tool (ngrep))
Then, I tried a cocoon-2.0.5-dev which correctly used the catalog. But,
I noticed some duplicated HTTP GET requests for any xhtml document
I 'FileGenerated' (a behavior that I actually also noticed with cocoon-2.0.4)


Hope this is just a personal misconfiguration problem

regards,
enrico







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to