--- parser3/src/include/pa_stylesheet_connection.h 2002/01/16 10:28:35 1.19 +++ parser3/src/include/pa_stylesheet_connection.h 2002/02/08 08:30:14 1.26 @@ -1,16 +1,16 @@ /** @file Parser: Stylesheet connection decl. - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://paf.design.ru) + Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) - $Id: pa_stylesheet_connection.h,v 1.19 2002/01/16 10:28:35 paf Exp $ + $Id: pa_stylesheet_connection.h,v 1.26 2002/02/08 08:30:14 paf Exp $ */ #ifndef PA_STYLESHEET_CONNECTION_H #define PA_STYLESHEET_CONNECTION_H -#include "libxslt/libxslt.h" +#include "libxslt/xslt.h" #include "libxslt/xsltInternals.h" #include "pa_pool.h" @@ -76,16 +76,17 @@ private: return now_disk_time>prev_disk_time?now_disk_time:0; } - /// @test grab errors void load(time_t new_disk_time) { Pool& pool=*fservices_pool; - xsltStylesheet *nstylesheet; - nstylesheet=xsltParseStylesheetFile(BAD_CAST ffile_spec.cstr(String::UL_FILE_SPEC)); - if(!nstylesheet) + xsltStylesheet *nstylesheet= + xsltParseStylesheetFile(BAD_CAST ffile_spec.cstr(String::UL_FILE_SPEC)); + if(!nstylesheet || xmlHaveGenericErrors()) { + GdomeException exc=0; throw Exception(0, 0, &ffile_spec, - "error compiling. TODO: grab errors"); + exc); + } xsltFreeStylesheet(fstylesheet); fstylesheet=nstylesheet;