|
|
| version 1.67, 2002/01/21 16:44:48 | version 1.71, 2002/01/23 12:19:56 |
|---|---|
| Line 9 | Line 9 |
| #include "pa_types.h" | #include "pa_types.h" |
| #ifdef XML | #ifdef XML |
| #include "gdome.h" | |
| #include "libxml/tree.h" | |
| extern "C" { | |
| #include "gdomecore/gdome-xml-node.h" | |
| #include "gdomecore/gdome-xml-document.h" | |
| }; | |
| #include "libxslt/xsltInternals.h" | |
| #include "libxslt/transform.h" | |
| #include "libxslt/xsltutils.h" | |
| #include "pa_stylesheet_connection.h" | #include "pa_stylesheet_connection.h" |
| #include "classes.h" | #include "classes.h" |
| #include "pa_request.h" | #include "pa_request.h" |
| Line 17 | Line 27 |
| #include "pa_vfile.h" | #include "pa_vfile.h" |
| #include "xnode.h" | #include "xnode.h" |
| extern "C" { | |
| #include "gdomecore/gdome-xml-node.h" | |
| #include "gdomecore/gdome-xml-document.h" | |
| }; | |
| #include "libxslt/transform.h" | |
| #include "libxslt/xsltutils.h" | |
| // defines | // defines |
| Line 410 static void _create(Request& r, const St | Line 414 static void _create(Request& r, const St |
| vdoc.set_document(document); | vdoc.set_document(document); |
| } | } |
| /// @test xmlSAXParseMemory(NULL<<error handler subst, buffer, size, 0) | |
| static void _set(Request& r, const String& method_name, MethodParams *params) { | static void _set(Request& r, const String& method_name, MethodParams *params) { |
| // _asm int 3; | // _asm int 3; |
| Pool& pool=r.pool(); | Pool& pool=r.pool(); |
| Line 436 static void _set(Request& r, const Strin | Line 439 static void _set(Request& r, const Strin |
| vdoc.set_document(document); | vdoc.set_document(document); |
| } | } |
| /** @test maybe needed | |
| int savedReplaceEntities=xmlSubstituteEntitiesDefault(1); | |
| ... | |
| xmlSubstituteEntitiesDefault(savedReplaceEntities); | |
| */ | |
| static void _load(Request& r, const String& method_name, MethodParams *params) { | static void _load(Request& r, const String& method_name, MethodParams *params) { |
| Pool& pool=r.pool(); | Pool& pool=r.pool(); |
| VXdoc& vdoc=*static_cast<VXdoc *>(r.self); | VXdoc& vdoc=*static_cast<VXdoc *>(r.self); |
| Line 453 static void _load(Request& r, const Stri | Line 461 static void _load(Request& r, const Stri |
| &exc); | &exc); |
| if(!document || exc || xmlHaveGenericErrors()) | if(!document || exc || xmlHaveGenericErrors()) |
| throw Exception(0, 0, | throw Exception(0, 0, |
| &method_name, | &uri, |
| exc); | exc); |
| // replace any previous parsed source | // replace any previous parsed source |
| Line 717 static void _transform(Request& r, const | Line 725 static void _transform(Request& r, const |
| if(!transformed || xmlHaveGenericErrors()) { | if(!transformed || xmlHaveGenericErrors()) { |
| GdomeException exc=0; | GdomeException exc=0; |
| throw Exception(0, 0, | throw Exception(0, 0, |
| &method_name, | &stylesheet_filespec, |
| exc); | exc); |
| } | } |