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
Get XML Publishing with AxKit now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.