|
|
| version 1.60, 2003/11/06 09:15:16 | version 1.63, 2003/11/20 16:34:24 |
|---|---|
| Line 7 | Line 7 |
| #include "classes.h" | #include "classes.h" |
| #ifdef XML | #ifdef XML |
| static const char* IDENT_XNODE_C="$Date$"; | static const char * const IDENT_XNODE_C="$Date$"; |
| #include "pa_vmethod_frame.h" | #include "pa_vmethod_frame.h" |
| Line 111 GdomeNode* as_node(MethodParams& params, | Line 111 GdomeNode* as_node(MethodParams& params, |
| throw Exception("parser.runtime", | throw Exception("parser.runtime", |
| 0, | 0, |
| msg); | msg); |
| result=0; // calm, compiler | |
| } | } |
| return result; | return result; |
| Line 155 static void _replaceChild(Request& r, Me | Line 154 static void _replaceChild(Request& r, Me |
| VXnode& vnode=GET_SELF(r, VXnode); | VXnode& vnode=GET_SELF(r, VXnode); |
| GdomeNode* selfNode=vnode.get_node(); | GdomeNode* selfNode=vnode.get_node(); |
| GdomeNode* newChild=as_node(params, 0, "newChild must be node"); | GdomeNode* newChild=as_node(params, 0, "newChild must be node"); |
| GdomeNode* refChild=as_node(params, 1, "refChild must be node"); | GdomeNode* oldChild=as_node(params, 1, "oldChild must be node"); |
| GdomeException exc; | GdomeException exc; |
| if(GdomeNode* retNode=gdome_n_replaceChild(selfNode, newChild, refChild, &exc)) { | if(GdomeNode* retNode=gdome_n_replaceChild(selfNode, newChild, oldChild, &exc)) { |
| // write out result | // write out result |
| r.write_no_lang(*new VXnode(&r.charsets, retNode)); | r.write_no_lang(*new VXnode(&r.charsets, retNode)); |
| } else | } else |
| Line 575 static void selectNodeHandler(Request& r | Line 574 static void selectNodeHandler(Request& r |
| } | } |
| } | } |
| static void selectBoolHandler(Request& r, | static void selectBoolHandler(Request&, |
| const String& expression, | const String& expression, |
| xmlXPathObject_auto_ptr res, | xmlXPathObject_auto_ptr res, |
| Value*& result) { | Value*& result) { |
| Line 595 static void selectBoolHandler(Request& r | Line 594 static void selectBoolHandler(Request& r |
| } | } |
| } | } |
| static void selectNumberHandler(Request& r, | static void selectNumberHandler(Request&, |
| const String& expression, | const String& expression, |
| xmlXPathObject_auto_ptr res, | xmlXPathObject_auto_ptr res, |
| Value*& result) { | Value*& result) { |