I'm trying to create my own provider to get an xml document from an external 
webserver. I use the dbi provider example, but in the get_strref function used lwp to 
get the content.  The idea was to create a url like hostname/xml/123455  get the 
parameter and request an xml document based on the path.  It seems 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. 
I've  looked at the provider and file modules, but I'm not exactly clear on how to 
implement get_external_ent(). 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