On Sunday, Mar 2, 2003, at 09:20 Europe/London, Daisuke Maki wrote:

It looks like no stylesheets are defined for the axkit: uri you're specifying. I don't know if that specific situation has been tested or not yet. Try defining some stylesheets for it (and make sure it gets some output).

I actually want the raw XML string from the uri without any transformation, but anyway I did that, and it's the same codepath, except the error is now:


[Sun Mar 2 01:18:44 2003] [error] [client 127.0.0.1] [AxKit] [Error] input call back died: Can't coerce ARRAY to string in entersub at /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/Apache/AxKit/Language/ LibXSLT.pm line 129.

One of those cryptic libxslt errors ;)

I *think* this is what you get if the callback dies. It's kinda crappy error handling in XML::LibXML or LibXSLT. I think I've fixed those bugs in CVS though.


Try the following patch, see if it helps:

Index: lib/AxKit.pm
===================================================================
RCS file: /home/cvs/xml-axkit/lib/AxKit.pm,v
retrieving revision 1.41
diff -u -r1.41 AxKit.pm
--- lib/AxKit.pm        7 Feb 2003 12:20:47 -0000       1.41
+++ lib/AxKit.pm        2 Mar 2003 09:38:48 -0000
@@ -551,8 +551,11 @@
             }
         }
         else {
-            # Some other type of exception
-            $E->throw;
+            # Some other type of exception - since error
+            # handling from axkit: uri handling might not be
+            # great, return the error xml instead of propogating
+            # the exception
+            return $E->as_xml($r->filename);
         }
     }


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



Reply via email to