hello
I have written an very early draft of a provider for my needs.
some of its look like this:
(I ommited the other functions like "process")
sub init {
my $self = shift;
my (%p) = @_;
}
sub get_fh {
print STDERR "get_fh called\n";
my $self = shift;
my $fh = Apache->gensym();
if($fh = IO::Socket::INET->new('127.0.0.1:4480')) {
print STDERR "SUCCESS\n";
print $fh "hello from axkit again\n";
return $fh;
}
print "NOT A SUCCESS\n";
}
sub get_strref {
print STDERR "get_strref called\n";
my $self = shift;
my $fh = $self->get_fh();
local $/;
my $contents = <$fh>;
return \$contents;
}
the idea is to get the xml file from a tcp server.
this works just fine.
and the xslt file will be some where in the DOCUMENT ROOT
I get the following error:
compilation error: file unknown-000138655032 element birds
xsltParseStylesheetProcess : document is not a stylesheet
[Tue Feb 12 10:39:18 2002] [error] [client 127.0.0.1] [AxKit] [Error] Can't call
method "transform" on an undefined value at
/usr/lib/perl5/site_perl/5.6.1/i586-linux/Apache/AxKit/Language/LibXSLT.pm line 118.
[Tue Feb 12 10:39:18 2002] [error] [client 127.0.0.1] [AxKit] From:
/usr/lib/perl5/site_perl/5.6.1/i586-linux/Apache/AxKit/Exception.pm : 9
[Tue Feb 12 10:39:18 2002] [error] ErrorStylesheet:
I think Axkit can not find the xslt stylesheet
I once printet the contet of the "bits" array in Provider.pm line 212
print (STDERR "\nBITS: ", join(" -- ", $bits->[0]->[0]), "\n\n");
and this give me the following output in the apache log file
BITS: href="birds.xsl" type="text/xsl"
so this seems to be correct.
I also get an error when I leave get_strref empty.
is this possible??? I think I only net get_fh
can you tell me where Axkit is looking for the *xsl files???
how do I tell Axkit to lool at a certain directory???
this is my first attempt to write my own provider. so this can surely be done
much better.
markus
________________________________________________________________
Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr!
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]