A.15 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 



XML Publishing with AxKit
XML Publishing with Axkit
ISBN: 0596002165
EAN: 2147483647
Year: 2003
Pages: 109
Authors: Kip Hampton

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net