On 1/28/03 at 8:30 PM, [EMAIL PROTECTED] (Matt Sergeant) wrote:

> On Tuesday, Jan 28, 2003, at 20:06 Europe/London, Bill McCabe wrote:
> 
> > Hi All,
> >
> > I've put together an xpathscript setup that generates reports from 
> > database
> > extracts. My xps file looks at GET args to determine whether to output 
> > an html
> > file or a PDF (eg. ".../report.xml?ss=pdf"). Up until today I've kept 
> > caching
> > off and everything has been fine. Now that I've turned it with 
> > AxGzipOutput on
> > only returns the cached version and ignores the args. I realize this 
> > is exactly
> > what I should have expected had I thought it through. Anyone know of a
> > workaround for this situation, or am I going to need to use identical
> > differently named xml files for different output styles so the cache 
> > can keep
> > theem sorted out?
> 
> http://axkit.org/wiki/view/AxKit/Apache::AxKit::Plugin::QueryStringCache
> 
> Matt.
> 
Thanks Matt, that fixed the problem. However, my PDF code began throwing up the
following error:

[AxKit] [Error] Operation `>': no method found,
    left argument has no overloaded magic,
    right argument in overloaded package XML::XPath::Literal at ...
    
If I commented the section out the error simply reappears farther down with the
+= operator.

So I edited XML::XPath::Literal.pm to read:

use overload
                '""' => \&value,
                'cmp' => \&cmp,
                'fallback' => 1;

which seemed to fix the problem, but I don't really know what I'm doing so I
wanted to run it by you to make sure I don't break something else. 

Thanks again

Bill

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

Reply via email to