O'Reilly logo

XML Publishing with AxKit by Kip Hampton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

AxErrorStylesheet

If an error that occurs during processing throws an exception, the exception handler tries to find an ErrorStylesheet to use to process XML of the following format:

<error>
           <file>/usr/htdocs/xml/foo.xml</file>
           <msg>Something bad happened</msg>
           <stack_trace> <bt level="0">
           <file>/usr/lib/perl/site/AxKit.pm</file>
           <line>342</line> </bt>
           </stack_trace> </error>

There may be multiple bt tags. If an exception occurs when the error stylesheet is transforming the above XML, then a SERVER ERROR occurs and an error is written in the Apache error log.

AxErrorStylesheet text/xsl /stylesheets/error.xsl

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required