Jan Warnstam wrote:
The NewsML files all have a "<!DOCTYPE ..." part that seems to confuse the Cocoon machinery - in other words it throws a "java.net.ConnectException:Connection refused". If I comment the "<!DOCTYPE ..." part of the XML file it all works fine.

The DTD that is pointed out exists and is reachable via a normal HTTP request in a browser.

Try wget, the server may rely on some headers commonly set by browsers but not used by Cocoon.

In cocoon.xconf the parameter called "validate" is set to it's default value, which is "false". The parser used is the default parser (org.apache.avalon.excalibur.xml.JaxpParser).

Parsers are required to read external DTDs unless the XML is explicitely declared standalone="yes", in order to retrieve entity declarations and default attribute values. Therefore, turning off validation wont stop the parser from fetching the DTD, which is causing your trouble.

A solution is to download the DTD, store it locally and set up a
catalog for the entity resolver to point to the local file.

J.Pietschmann



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



Reply via email to