Thanks for the AxKit tip!

I have some problems though. I used AxKit-0.94, but it doesn't work yet.

My http.conf configuration:
PerlModule AxKit
<Location /~jon/xml>
   SetHandler perl-script
   PerlHandler AxKit

   # Setup style type mappings
   AxAddStyleMap text/xsl Apache::AxKit::Language::Sablot
   AxAddStyleMap application/x-xpathscript \
   Apache:AxKit::Language::XPathScript

   # Optionally setup a default style mapping
   AxAddDefaultStyleMap /default.xsl text/xsl

   # Optionally set a hard coded cache directory
   #AxCacheDir /
</Location>

xml-file:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="konsult.xsl"?>
<konsulter>
   <konsult id="1">
      <efternamn>Aston</efternamn>
      <fornamn>Sam</fornamn>
      <telnr>607</telnr>
   </konsult>
</konsulter>

Error message from logfile when accessing the document:
Use of uninitialized value at /usr/lib/perl5/site_perl/AxKit.pm line 246.
[Wed Jun 14 15:57:44 2000] [error] [client 10.10.1.186] [AxKit] [UnCaught]
Died at /usr/lib/perl5/site_perl/AxKit.pm line 246.

The webbrowser receives the xml-output and since I'm using IE5, it uses the
xsl-file to create HTML.

/Jonas Nordstrom


> -----Original Message-----
> From: Matt Sergeant [SMTP:[EMAIL PROTECTED]]
> Sent: den 14 juni 2000 15:28
> To:   Kip Hampton
> Cc:   Jonas Nordström; [EMAIL PROTECTED]
> Subject:      RE: XSL-handler
> 
> On Wed, 14 Jun 2000, Kip Hampton wrote:
> 
> > Have a look at AxKit. It does what you are looking for and quite a bit
> more.
> > 
> > http://xml.sergeant.org/axkit/
> > 
> > Or visit a CPAN nearest you for a slightly dated version.
> 
> Don't go to cpan yet - any version below 0.90 contains a deprecated
> API. I'll be uploading a newer version to CPAN once I'm happy with the
> examples and documentation (read: not yet). And axkit.org should come
> online fairly soon once I update the documentation and things.
> 
> -- 
> <Matt/>
> 
> Fastnet Software Ltd. High Performance Web Specialists
> Providing mod_perl, XML, Sybase and Oracle solutions
> Email for training and consultancy availability.
> http://sergeant.org http://xml.sergeant.org

Reply via email to