Hello, I have installed AxKit and axpoint to specifically to convert XML docs to PDF.
The "Your First AxKit Page" (http://axkit.org/docs/guide.dkb?section=3) works properly. My apache server displays the "test.xml" page as HTML. The command line tool `axpoint` works just fine. My problem is getting axpoint to convert XML to PDF "on-the-fly". 1. Here's my installation information configuration: Linux 2.4.9 AxKit-1.6 mod_perl-1.27 PDFLib-0.12 pdflib-4.0.3 Text-Iconv-1.2 XML-Handler-AxPoint-1.30 XML-SAX-0.10 XML-SAX-Writer-0.39 Error-0.15 libapreq-0.33 apache_1.3.26 2. Here are the relevant lines from httpd.conf: PerlModule AxKit SetHandler perl-script PerlHandler AxKit AddHandler axkit .xml AddHandler axkit .xsp AddHandler axkit .dkb AxDebugLevel 50 PerlSetVar AxXPSInterpolate 1 AxCacheDir /tmp/axkit_cache/ AxAddStyleMap application/x-xpathscript Apache::AxKit::Language::XPathScript <Files *.axp> AxAddStyleMap application/x-axpoint Apache::AxKit::Language::AxPoint AxAddRootProcessor application/x-axpoint NULL slideshow AxAddProcessor application/x-axpoint NULL </Files> The "<Files *.axp>" statement I got from http://www.xml.com/pub/a/2002/06/19/perl-xml.html?page=2 and http://www.softbrain.co.kr/CPANdoc/Apache/AxKit/Language/AxPoint.html 3. Here is my simple axp file called "/home/pim/public_html/xml/bleach.axp": <?xml version="1.0"?> <slideshow> <title>The Secrets of Using Acme::Bleach</title> <slide> <title>After</title> <point level="1">When running a script that uses Acme::Bleach for the first time, all the distracting printable characters are removed from your source file and only the 'use Acme::Bleach' line appears.</point> <point level="2">The scary part is, the script still works as before.</point> <source-code> use Acme::Bleach; # prints Bactrian Camel (Camelus bactrianus) Dromedary, or Arabian Camel (Camelus dromedarius) ... </source-code> </slide> </slideshow> NOTE that I can convert this to pdf qith axpoint on the command line. 4. The errors When I load bleach.axp on my browser here is the output from the apache error.log: [AxKit] handler called for /~pim/xml/bleach.axp [AxKit] Content Provider Override: Apache::AxKit::Provider::File [AxKit] [req] File Provider given $r: /home/pim/public_html/xml/bleach.axp [AxKit] checking if we process this resource [AxKit] '/home/pim/public_html/xml/bleach.axp' not recognised as XML [AxKit] provider declined so I punt and re-name the file to bleach.xml and reload: [AxKit] handler called for /~pim/xml/bleach.xml [AxKit] Content Provider Override: Apache::AxKit::Provider::File [AxKit] [req] File Provider given $r: /home/pim/public_html/xml/bleach.xml [AxKit] checking if we process this resource [AxKit] media: screen, preferred style: #default [AxKit] Cache: key = 7befaf0ae8224c93c3a4bd4d410f0f7c [AxKit] getting styles and external entities from the XML [AxKit] styles not cached - calling $provider->get_styles() [AxKit] using XS get_styles (libxml2) [AxKit] calling xs_get_styles_fh() [AxKit] calling xs_get_styles_str() [AxKit] xs_get_styles returned: , , slideshow [AxKit] Calling GetMatchingProcessors with (screen, , , , slideshow) [AxKit] Caught an exception [AxKit] [DECLINED] From: /usr/lib/perl5/site_perl/5.6.0/Error.pm : 148 I have tried to add the line " AddHandler axkit .axp" to httpd.conf and I get the same "[DECLINED]" error, above. Any help getting the "on-the-fly" conversion to work would be appreciated. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Phil Macias * [EMAIL PROTECTED] * Princeton, NJ ___,_ |_|_, 609 987 5059 office | 609 203 5874 cell `/`-- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
