When accessing an openoffice document using the openoffice plugin, axkit gives the following error:
Server Error The following error occurred: input callback died: File '/home/ronalde/ learning/axkit/webroot/office.dtd' does not exist or is not readable at /usr/lib/perl5/XML/LibXML.pm line 374. (See below for details from error.log) The problem lies in the fact that openoffice uses a public identifier with a *relative* path: <!DOCTYPE office:document-content PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "office.dtd"> instead of using the formal: <!DOCTYPE office:document-content PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "http://www.openoffice.org/source/browse/xml/ xmloff/dtd/office.dtd"> uri. That's why the parser tries to load 'office.dtd' from the webroot, as discussed in: http://www.mail-archive.com/[EMAIL PROTECTED]/msg04760.html I don't really know why ooo uses a relative uri in a public identifier. OTOH I guess nobody would like to have the ooo-dtd's in their webroot so I suggest a patch to the OpenOffice plugin, so it default to the system's dtd catalog. Regards, Ronald van Engelen error.log: [Fri Aug 13 16:02:31 2004] [warn] [client 10.0.0.149] [AxKit] [LibXSLT] getting the XML parser match_cb: at /usr/lib/perl5/Apache/AxKit/Language/LibXSLT.pm line 55. [Fri Aug 13 16:02:31 2004] [warn] [client 10.0.0.149] [AxKit] LibXSLT match_uri: file:///etc/xml/catalog [Fri Aug 13 16:02:31 2004] [warn] [client 10.0.0.149] [AxKit] LibXSLT match_uri: /office.dtd [Fri Aug 13 16:02:31 2004] [warn] [client 10.0.0.149] [AxKit] LibXSLT open_content_uri: /office.dtd [Fri Aug 13 16:02:31 2004] [warn] [client 10.0.0.149] [AxKit] Content Provider Override: Apache::AxKit::Provider::File [Fri Aug 13 16:02:31 2004] [warn] [client 10.0.0.149] [AxKit] decoding from UTF-8 [Fri Aug 13 16:02:31 2004] [warn] [client 10.0.0.149] [AxKit] [req] File Provider given $r: /home/ronalde/learning/axkit/webroot/office.dtd [Fri Aug 13 16:02:31 2004] [warn] [client 10.0.0.149] [AxKit] encoding to UTF-8 [Fri Aug 13 16:02:31 2004] [warn] [client 10.0.0.149] [AxKit] LibXSLT match_uri: office.dtd [Fri Aug 13 16:02:31 2004] [warn] [client 10.0.0.149] [AxKit] LibXSLT open_content_uri: office.dtd [Fri Aug 13 16:02:31 2004] [warn] [client 10.0.0.149] [AxKit] Content Provider Override: Apache::AxKit::Provider::File [Fri Aug 13 16:02:31 2004] [warn] [client 10.0.0.149] [AxKit] decoding from UTF-8 [Fri Aug 13 16:02:31 2004] [warn] [client 10.0.0.149] [AxKit] [req] File Provider given $r: /home/ronalde/learning/axkit/webroot/office.dtd [Fri Aug 13 16:02:31 2004] [warn] [client 10.0.0.149] [AxKit] encoding to UTF-8 [Fri Aug 13 16:02:31 2004] [warn] [client 10.0.0.149] [AxKit] Caught an exception [Fri Aug 13 16:02:31 2004] [error] [client 10.0.0.149] [AxKit] [Error] input callback died: File '/home/ronalde/learning/axkit/webroot/ office.dtd' does not exist or is not readable at /usr/lib/perl5/XML/ LibXML.pm line 374.\n [Fri Aug 13 16:02:31 2004] [error] [client 10.0.0.149] [AxKit] From: / usr/lib/perl5/Apache/AxKit/Exception.pm : 9 [Fri Aug 13 16:02:31 2004] [error] [client 10.0.0.149] [AxKit] [Backtrace] input callback died: File '/home/ronalde/learning/axkit/ webroot/office.dtd' does not exist or is not readable at /usr/lib/perl5/ XML/LibXML.pm line 374.\n\tApache::AxKit::Exception::new ('Apache::AxKit::Exception::Error', '-text', 'input callback died: File \\'/home/ronalde/learning/axkit/webr...') called at /usr/lib/perl5/ AxKit.pm line 1015\n\tAxKit::prep_exception('input callback died: File \ \'/home/ronalde/learning/axkit/webr...') called at /usr/lib/perl5/ AxKit.pm line 173\n\tAxKit::__ANON__('input callback died: File \\'/ home/ronalde/learning/axkit/webr...') called at /usr/lib/perl5/XML/ LibXML.pm line 374\n\teval {...} called at /usr/lib/perl5/XML/LibXML.pm line 374\n\tXML::LibXML::parse_string('XML::LibXML=HASH(0x8705ef8)', '<? xml version="1.0" encoding="UTF-8"?>\\x{a}<!DOCTYPE office:docum...', '/ voorstel-cm-portfolio-v1.1.sxw') called at /usr/lib/perl5/Apache/AxKit/ Provider.pm line 87\n\tApache::AxKit::Provider::get_dom ('Apache::AxKit::Provider::OpenOffice=HASH(0x866195c)') called at /usr/ lib/perl5/Apache/AxKit/Language/LibXSLT.pm line 64\n \tApache::AxKit::Language::LibXSLT::handler ('Apache::AxKit::Language::LibXSLT', 'AxKit::Apache=SCALAR(0x86c5374)', 'Apache::AxKit::Provider::OpenOffice=HASH(0x866195c)', 'Apache::AxKit::Provider::File=HASH(0x8661b54)', 1) called at /usr/lib/ perl5/AxKit.pm line 759\n\tAxKit::process_request('AxKit::Apache=SCALAR (0x86c5374)', 'Apache::AxKit::Provider::OpenOffice=HASH(0x866195c)', 'ARRAY(0x86e243c)', 'undef') called at /usr/lib/perl5/AxKit.pm line 474 \n\tAxKit::run_axkit_engine('AxKit::Apache=SCALAR(0x86c5374)', 'Apache::AxKit::Provider::OpenOffice=HASH(0x866195c)') called at /usr/ lib/perl5/AxKit.pm line 300\n\teval {...} called at /usr/lib/perl5/ AxKit.pm line 291\n\tAxKit::main_handler('AxKit::Apache=SCALAR (0x86c5374)', 'Apache::AxKit::Provider::OpenOffice=HASH(0x866195c)') called at /usr/lib/perl5/AxKit.pm line 204\n\tAxKit::fast_handler ('AxKit::Apache=SCALAR(0x86c5374)') called at /dev/null line 0\n\teval {...} called at /dev/null line 0\n --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
