I'm trying to create my own provider to get an xml document from an external 
webserver. I'll i did was use the dbi provider example, but in the get_strref function 
used lwp to get the content.  It seem that I've been able to create everything but for 
some reason the transformation of the xml is never applied, and I'll I get is the raw 
xml. There's probably an easier way to do this. It clearly parses and identifies the 
XSL, but as you can see from the last log entry it simply writing xml string 
untransformed or partially transformed. Any help would be great.

Here's what I have in my conf:

<Location /xml/>
AxDebugLevel 10
SetHandler perl-script
PerlHandler AxKit
#AxCacheDir /usr/local/www/stylesheets/cachedir
AxNoCache  On
AxProvider Apache::AxKit::Provider::HotelInfo
AxAddStyleMap text/xsl Apache::AxKit::Language::Sablot
</Location>

Here's what I'm seeing in my log.

[Wed Feb 27 10:12:29 2002] [warn] [client 192.168.0.109] [AxKit] get_styles: loading 
style modules
[Wed Feb 27 10:12:29 2002] [warn] [client 192.168.0.109] [AxKit] get_styles: looking 
for mapping for style type: 'text/xsl'
[Wed Feb 27 10:12:30 2002] [warn] [client 192.168.0.109] [AxKit] resetting cache with 
no preferred style (#default ne )
[Wed Feb 27 10:12:30 2002] [warn] [client 192.168.0.109] [AxKit] Cache: key = 
0f4c0152aba6b9d5e278e4d8c9a3d15f
[Wed Feb 27 10:12:30 2002] [warn] [client 192.168.0.109] [AxKit] cache doesn't exist
[Wed Feb 27 10:12:30 2002] [warn] [client 192.168.0.109] [AxKit] some condition 
failed. recreating output
[Wed Feb 27 10:12:30 2002] [warn] [client 192.168.0.109] [AxKit] styles: 
Apache::AxKit::Language::Sablot(/test.xsl)
[Wed Feb 27 10:12:30 2002] [warn] [client 192.168.0.109] [AxKit] about to execute: 
Apache::AxKit::Language::Sablot::handler
[Wed Feb 27 10:12:30 2002] [warn] [client 192.168.0.109] [AxKit] execution of: 
Apache::AxKit::Language::Sablot::handler finished
[Wed Feb 27 10:12:30 2002] [warn] [client 192.168.0.109] [AxKit] writing xml string to 
browser

my XSL sheet is correct as when I test it without getting a remote url it processes it 
fine.






Miguel Navarro

Redbillows Consulting
5980 Judsonville Drive
Antioch,  CA 94509
phone: 650-533-6939
email:  [EMAIL PROTECTED]

Reply via email to