--- parser3/src/include/pa_stylesheet_connection.h 2002/02/20 10:40:07 1.27 +++ parser3/src/include/pa_stylesheet_connection.h 2002/08/01 11:41:16 1.30 @@ -3,13 +3,13 @@ Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - - $Id: pa_stylesheet_connection.h,v 1.27 2002/02/20 10:40:07 paf Exp $ */ #ifndef PA_STYLESHEET_CONNECTION_H #define PA_STYLESHEET_CONNECTION_H +static const char* IDENT_STYLESHEET_CONNECTION_H="$Date: 2002/08/01 11:41:16 $"; + #include "libxslt/xslt.h" #include "libxslt/xsltInternals.h" @@ -81,12 +81,14 @@ private: xsltStylesheet *nstylesheet= xsltParseStylesheetFile(BAD_CAST ffile_spec.cstr(String::UL_FILE_SPEC)); - if(!nstylesheet || xmlHaveGenericErrors()) { + if(xmlHaveGenericErrors()) { GdomeException exc=0; - throw Exception(0, 0, - &ffile_spec, - exc); + throw Exception(&ffile_spec, exc); } + if(!nstylesheet) + throw Exception("file.missing", + &ffile_spec, + "stylesheet failed to load"); xsltFreeStylesheet(fstylesheet); fstylesheet=nstylesheet;