Hi,

I'd like to add some random decoration to my pages and thought I'll use the 
document() XSLT function to pull it in - but it causes internal AxKit 
errors...

I have the attached stylesheet set up to transform XML documents (I simplified 
it for this posting to ignore the source document, but the original uses it 
successfully). The stylesheet stopped working after I added the variable 
declaration calling the document() function:

  <xsl:variable name="leftcontent" 
select="document('http://localhost/gcgi/left.cgi')/vocabulary"/>

http://localhost/gcgi/left.cgi is a valid URL returning the attached text/xml. 
But, when I try to access the composed XML document, I get 500 Internal 
Server Error; the apache error log (also attached) says a lot of things, most 
importantly IMHO

[AxKit] [Error] Can't coerce GLOB to string in entersub at 
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Apache/AxKit/Language/LibXSLT.pm
 
line 124.

What am I doing wrong? Is my XSLT syntax correct? Is document() supported by 
AxKit?

        Bye
                Vasek

P.S. AxKit 1.62, LibXML 1.54, libxml2 20508, Apache 1.3.28.

<?xml version="1.0" encoding="ISO-8859-2"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

  <xsl:variable name="leftcontent" select="document('http://localhost/gcgi/left.cgi')/vocabulary"/>


  <xsl:template match="/">
<html>
</html>
  </xsl:template>

</xsl:stylesheet>
[Wed Sep 17 08:19:28 2003] [notice] Apache/1.3.28 (Unix) AxKit/1.62 mod_perl/1.28 
configured -- resuming normal operations
[Wed Sep 17 08:19:28 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] fast handler called for 
/german/index.xml
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] checking if we process 
this resource
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] media: screen, preferred 
style: #default
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] Can't create cache 
directory '/usr/local/apache/htdocs/german/.xmlstyle_cache': Permission denied
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] Can't create cache 
directory '/usr/local/apache/htdocs/german/.xmlstyle_cache/c8': No such file or 
directory
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] Can't create cache 
directory '/usr/local/apache/htdocs/german/.xmlstyle_cache/c8/33': No such file or 
directory
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] getting styles and 
external entities from the XML
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] styles not cached - 
calling $provider->get_styles()
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] using XS get_styles 
(libxml2)
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] calling xs_get_styles_fh()
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] calling 
xs_get_styles_str()
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] xs_get_styles returned: , 
, body
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] Calling 
GetMatchingProcessors with (screen, , , , body)
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] get_styles: loading style 
modules
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] get_styles: looking for 
mapping for style type: 'text/xsl'
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] cache doesn't exist
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] some condition failed. 
recreating output
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] styles: 
Apache::AxKit::Language::LibXSLT(/german/frame.xsl)
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] about to execute: 
Apache::AxKit::Language::LibXSLT::handler
parser match_cb:  at 
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Apache/AxKit/Language/LibXSLT.pm
 line 55.
[Wed Sep 17 08:29:00 2003] [warn] [client 127.0.0.1] [AxKit] Caught an exception
[Wed Sep 17 08:29:00 2003] [error] [client 127.0.0.1] [AxKit] [Error] Can't coerce 
GLOB to string in entersub at 
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Apache/AxKit/Language/LibXSLT.pm
 line 124.

[Wed Sep 17 08:29:00 2003] [error] [client 127.0.0.1] [AxKit] From: 
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Apache/AxKit/Exception.pm : 9
[Wed Sep 17 08:29:00 2003] [error] [client 127.0.0.1] [AxKit] [Backtrace] Can't coerce 
GLOB to string in entersub at 
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Apache/AxKit/Language/LibXSLT.pm
 line 124.
        
Apache::AxKit::Exception::new('Apache::AxKit::Exception::Error','-text','Can\'t coerce 
GLOB to string in entersub at /usr/lib/perl5/si...') called at 
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/AxKit.pm line 1015
        AxKit::prep_exception('Can\'t coerce GLOB to string in entersub at 
/usr/lib/perl5/si...') called at 
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/AxKit.pm line 173
        AxKit::__ANON__('Can\'t coerce GLOB to string in entersub at 
/usr/lib/perl5/si...') called at 
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Apache/AxKit/Language/LibXSLT.pm
 line 124
        
Apache::AxKit::Language::LibXSLT::handler('Apache::AxKit::Language::LibXSLT','AxKit::Apache=SCALAR(0x838a76c)','Apache::AxKit::Provider::File=HASH(0x8391624)','Apache::AxKit::Provider::File=HASH(0x83b55a4)',1)
 called at /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/AxKit.pm line 759
        
AxKit::process_request('AxKit::Apache=SCALAR(0x838a76c)','Apache::AxKit::Provider::File=HASH(0x8391624)','ARRAY(0x81fef08)','undef')
 called at /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/AxKit.pm line 474
        
AxKit::run_axkit_engine('AxKit::Apache=SCALAR(0x838a76c)','Apache::AxKit::Provider::File=HASH(0x8391624)')
 called at /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/AxKit.pm line 300
        eval {...} called at 
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/AxKit.pm line 291
        
AxKit::main_handler('AxKit::Apache=SCALAR(0x838a76c)','Apache::AxKit::Provider::File=HASH(0x8391624)')
 called at /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/AxKit.pm line 204
        AxKit::fast_handler('AxKit::Apache=SCALAR(0x838a76c)') called at /dev/null 
line 0
        eval {...} called at /dev/null line 0


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

Reply via email to