axkit-users  

Re: Problems getting HTML output from libxslt 1.1.8

Kjetil Kjernsmo
Thu, 29 Jul 2004 06:01:32 -0700

Hi Aubrey!

On onsdag 28. juli 2004, 21:27, Aubrey Hutchings wrote:

> I don't have any solution to your problem. However, I have been
> having a lot of problems with my libxslt setup...

I have been working a bit more on my problem, and it seems that the 
problem was really that in one of my stylesheets: In all but one of my 
stylesheets, the XHTML namespace was the default namespace, where as in 
one stylesheet, I had declared it with a html: prefix. I thought that 
the namespace prefix should be irrelevant, and the old behaviour seemed 
to confirm that. Given that the latest libxslt release says that it 
fixes a lot of namespace issues, it looks like I have been relying on 
faulty behaviour of previous versions or something. Am I still 
confused? Yes. :-)

> I too am having troubles with libxslt and Axkit (Debian stable using
> backports for libxslt) . However, I can't get it to work at
> all. Axkit performs perfectly with xps but fails on xslt (Internal
> Server Error). I'm using the examples that come with Axkit to test
> the xps part.
>
> I'm running Apache/1.3.26 (Unix) Debian GNU/Linux AxKit/1.5
> mod_perl/1.26 PHP/4.1.2 I get errors like this in my apache logs...

Well, as Tom said, there's a lot of outdated software there. 

In my experience, the Woody Apache version still works well (but I'm 
sure others here will point it out if it might have issues), but you 
really should upgrade AxKit. 1.5 is way old, and since you do not have 
something in production that should be stable as in not changing, you 
should go with the latest. 

I would strongly suggest removing the Debian AxKit packages, firing up 
the cpan shell, which is something like 
perl -MCPAN -e shell
if you haven't done it before. (apt-get install perl-modules, if you 
haven't allready). You'll get a lot of config options, do your best, it 
can't go that wrong.

When you're ready to install, go simply
install AxKit
You should just say yes to all the optional modules, and then it'll run 
along happily for some time, and then hopefully say that it was 
installed. 

> [Wed Jul 28 12:25:15 2004] [error] [client 10.8.116.141] [AxKit]
> [Error] Load of 'Apache::AxKit::Language::LibXSLT' failed with:
> AxKit::load_module failed: Can't locate XML/LibXSLT.pm in @INC (@INC
> contains: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1
> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1
> /usr/share/perl/5.6.1 /usr/local/lib/site_perl . /etc/apache/
> /etc/apache/lib/perl) at

Well, you _have_ installed XML::LibXSLT, right? Optionally Debian 
package libxml-libxslt-perl ? :-) If the answer is no, then that's the 
problem, and installing AxKit as above will give you the option to 
install it, so that's the most straightforward method.
 
> Sorry if this is wandering off topic for the Axkit list...

No problem! Just try to install it from CPAN and see how it goes! :-)

Cheers,

Kjetil
-- 
Kjetil Kjernsmo
Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer
[EMAIL PROTECTED]  [EMAIL PROTECTED]  [EMAIL PROTECTED]
Homepage: http://www.kjetil.kjernsmo.net/        OpenPGP KeyID: 6A6A0BBC

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