On Sat, Jul 05, 2003 at 09:54:18AM +0100, Matt Sergeant wrote:
> On Friday, Jul 4, 2003, at 20:57 Europe/London, John Edstrom wrote:
> 
> > I'm not sure this is the best place to ask questions about specific
> > packages, but here goes.
> >
> > I installed the OO provider/plugin package.  It almost works.  A
> > simple .sxw document generates error code 500.  The provider module
> > compiles without any problem and passes all three tests.
> >
> > the specific logged error is:
> >
> > [AxKit] [Error] Can't coerce GLOB to string in entersub at
> >     /usr/local/web/Development/lib/Apache/AxKit/Language/LibXSLT.pm
> >     line 122.
> 
> This happens when LibXSLT can't find a file. The easiest way is to 
> enable debugging in LibXSLT by adding this to your httpd.conf/htaccess 
> file:
> 

Thanks for the tip.

> <Perl>
> XML::LibXSLT->debug_callback(sub { warn(@_) });
> </Perl>

After I put this directive into the configuration file I was able to
render the sxw file exactly once on the first hit. All subsequent hits
failed.  It seems that the concatenation in oocommon.xsl isn't
happening in the failed cases or else the prefix variable is getting lost
somehow.

I restarted the server between these two trials but didn't change the
configuration.

here is the log from the vicinity of the success:

...
xsltCompilePattern : parsing 'meta:*'
xsltCompilePattern : parsed meta:*, default priority -0.250000
added pattern : 'meta:*' priority -0.250000
xsltCompilePattern : parsing 'dc:*'
xsltCompilePattern : parsed dc:*, default priority -0.250000
added pattern : 'dc:*' priority -0.250000
parsed 48 templates
Resolving attribute sets references
Initializing keys on /test.sxw
Evaluating user parameter oo.request.uri='/test.sxw'
Object is a string : /test.sxw
Evaluating user parameter oo.sxwfile='test.sxw'
Object is a string : test.sxw
Registered 0 modules
Registering global variables
Registering global variables from /stylesheets/oo2html.xsl
Registering global variables from /stylesheets/oocommon.xsl
Evaluating global variable meta
Lookup variable oo.sxwfile
found variable oo.sxwfile
[Sat Jul  5 10:31:03 2003] [warn] [client 192.168.1.13] [AxKit] [req]
File Provider given $r:
/usr/local/web/Development/docs/test.sxw
[Sat Jul  5 10:31:03 2003] [warn] [client 192.168.1.13] [AxKit]
[OpenOffice]: path info found in get_strref: meta.xml
Initializing keys on /test.sxw/meta.xml
Object is a Node Set :
Set contains 1 nodes:
1  ELEMENT office:meta
Evaluating global variable styles
...



here is the analogous region of the log near the next failure where
the logs diverge:

...
xsltCompilePattern : parsing 'meta:*'
xsltCompilePattern : parsed meta:*, default priority -0.250000
added pattern : 'meta:*' priority -0.250000
xsltCompilePattern : parsing 'dc:*'
xsltCompilePattern : parsed dc:*, default priority -0.250000
added pattern : 'dc:*' priority -0.250000
parsed 48 templates
Resolving attribute sets references
Initializing keys on /test.sxw
Evaluating user parameter oo.request.uri='/test.sxw'
Object is a string : /test.sxw
Evaluating user parameter oo.sxwfile='test.sxw'
Object is a string : test.sxw
Registered 0 modules
Registering global variables
Registering global variables from /stylesheets/oo2html.xsl
Registering global variables from /stylesheets/oocommon.xsl
Evaluating global variable meta
Lookup variable oo.sxwfile
found variable oo.sxwfile
[Sat Jul  5 10:39:44 2003] [warn] [client 192.168.1.13] [AxKit] [req]
File Provider given $r:
/usr/local/web/Development/docs/test.sxw
[Sat Jul  5 10:39:44 2003] [warn] [client 192.168.1.13] [AxKit]
[OpenOffice]: path info found in get_strref: meta.xml
[Sat Jul  5 10:39:44 2003] [warn] [client 192.168.1.13] [AxKit] Caught
an exception
[Sat Jul  5 10:39:44 2003] [error] [client 192.168.1.13] [AxKit]
[Error] Can't coerce GLOB to string in entersub at
/usr/local/web/Development/lib/Apache/AxKit/Language/LibXSLT.pm line 123.
...


> 
> Then you'll get output in your error log showing exactly why it failed.
> 
> Matt.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
John Edstrom  



-- 
John Edstrom  


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

Reply via email to