Hello list,

I am currently developing a system to transform NewsML files into news articles suited for web presentation, and using XSLT transforms in Cocoon 2 to do this.

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.

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).

I wouldn't mind turning the validation off altogether as we will have to trust the quality of the XML files anyway, so what I want to do is get Cocoon to not care at all about the "<!DOCTYPE ..." part of the document, and not try to perform this validation (if it's what causes the crash).

Does anyone have any ideas or tips? Thanks in advance.

Yours
 Jan Warnstam
 Developer

 EuroNetics
 Teknikringen 1E
 583 30 Link?ping
 013-21 81 81
 http://www.euronetics.se/


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



Reply via email to