There really isn't much of a better way to debug XSLT WITHIN AxKit. There's an
option to dump each stage of the pipeline to a file, which can sometimes give
you a way to figure out problems where one stage doesn't output what the next
stage expects for input, but the other thing to do is test with a
command-line XSLT processor. In other words take a sample of the XML being
input to your chain and just apply your XSLT to it using a script (I rolled
my own long ago but I think you can find some online, xmllint maybe can do
it). xmllint is also pretty handy just to verify that your stylesheets and
XML source files are syntactically correct.
Honestly though, looking at your stacktrace I don't think you have an XSLT
problem so much as a crash in libxslt. Generally if there is bad XSLT or
input XML the error messages you get are more informative and usually tell
you that XML couldn't be parsed.
On Thursday 27 February 2003 06:28 am, Tom Howe wrote:
> Im trying to learn XSLT but whenever I make an error I get the same debug
> message that looks like this whatever error I make...
>
>
> [Thu Feb 27 11:31:18 2003] [warn] [client 172.22.51.201] [AxKit] Caught an
> exception
> [Thu Feb 27 11:31:18 2003] [error] [client 172.22.51.201] [AxKit] [Error]
> input callback died: Not a HASH reference at
> /web/gccperl561/lib/site_perl/5.6.1/Apache/Filter.pm line 191.
>
> [Thu Feb 27 11:31:18 2003] [error] [client 172.22.51.201] [AxKit] From:
> /web/gccperl561/lib/site_perl/5.6.1/i686-linux-multi/Apache/AxKit/Exception
>.pm
>
> : 9
>
> [Thu Feb 27 11:31:18 2003] [error] [client 172.22.51.201] [AxKit]
> [Backtrace] input callback died: Not a HASH reference at
> /web/gccperl561/lib/site_perl/5.6.1/Apache/Filter.pm line 191.
> Apache::AxKit::Exception::new('Apache::AxKit::Exception::Error',
> '-text', 'input callback died: Not a HASH reference at
> /web/gccperl561/lib...') called at
> /web/gccperl561/lib/site_perl/5.6.1/i686-linux-multi/AxKit.pm line 988
> AxKit::prep_exception('input callback died: Not a HASH reference
> at /web/gccperl561/lib...') called at
> /web/gccperl561/lib/site_perl/5.6.1/i686-linux-multi/AxKit.pm line 212
> AxKit::__ANON__('input callback died: Not a HASH reference at
> /web/gccperl561/lib...') called at
> /web/gccperl561/lib/site_perl/5.6.1/i686-linux-multi/Apache/AxKit/Language/
>LibXSLT.pm line 122
>
> Apache::AxKit::Language::LibXSLT::handler('Apache::AxKit::Language::LibXSLT
>', 'Apache::Filter=SCALAR(0x8a69088)',
> 'Apache::AxKit::Provider::Filter=HASH(0x8a753fc)',
> 'Apache::AxKit::Provider::Filter=HASH(0x8a6a4c8)', 1) called at
> /web/gccperl561/lib/site_perl/5.6.1/i686-linux-multi/AxKit.pm line 739
> AxKit::process_request('Apache::Filter=SCALAR(0x8a69088)',
> 'Apache::AxKit::Provider::Filter=HASH(0x8a753fc)', 'ARRAY(0x8a0d574)',
> undef) called at
> /web/gccperl561/lib/site_perl/5.6.1/i686-linux-multi/AxKit.pm line 461
> AxKit::run_axkit_engine('Apache::Filter=SCALAR(0x8a69088)',
> 'Apache::AxKit::Provider::Filter=HASH(0x8a753fc)') called at
> /web/gccperl561/lib/site_perl/5.6.1/i686-linux-multi/AxKit.pm line 288
> eval {...} called at
> /web/gccperl561/lib/site_perl/5.6.1/i686-linux-multi/AxKit.pm line 279
> AxKit::main_handler('Apache::Filter=SCALAR(0x8a69088)',
> 'Apache::AxKit::Provider::Filter=HASH(0x8a753fc)') called at
> /web/gccperl561/lib/site_perl/5.6.1/i686-linux-multi/AxKit.pm line 247
> AxKit::handler('Apache::Filter=SCALAR(0x8a69088)') called at
> /dev/null line 0
> eval {...} called at /dev/null line 0
>
>
>
> Is there someway to get something a bit more meaningful? I have debug
> level set to about 20 :)
>
> TIA, Tom
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Tod Harter
Giant Electronic Brain
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]