|
|
| version 1.14, 2001/10/19 14:56:16 | version 1.18, 2001/11/05 11:46:22 |
|---|---|
| Line 2 | Line 2 |
| Parser: @b dom parser class. | Parser: @b dom parser class. |
| Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf) | Author: Alexander Petrosyan <paf@design.ru> (http://paf.design.ru) |
| $Id$ | $Id$ |
| */ | */ |
| Line 74 static void _insertBefore(Request& r, co | Line 74 static void _insertBefore(Request& r, co |
| r.write_no_lang(result); | r.write_no_lang(result); |
| } | } |
| } catch(const XalanDOMException& e) { | } catch(const XalanDOMException& e) { |
| Exception::convert(pool, &method_name, e); | Exception::provide_source(pool, &method_name, e); |
| } | } |
| } | } |
| Line 94 static void _replaceChild(Request& r, co | Line 94 static void _replaceChild(Request& r, co |
| r.write_no_lang(result); | r.write_no_lang(result); |
| } | } |
| } catch(const XalanDOMException& e) { | } catch(const XalanDOMException& e) { |
| Exception::convert(pool, &method_name, e); | Exception::provide_source(pool, &method_name, e); |
| } | } |
| } | } |
| Line 113 static void _removeChild(Request& r, con | Line 113 static void _removeChild(Request& r, con |
| r.write_no_lang(result); | r.write_no_lang(result); |
| } | } |
| } catch(const XalanDOMException& e) { | } catch(const XalanDOMException& e) { |
| Exception::convert(pool, &method_name, e); | Exception::provide_source(pool, &method_name, e); |
| } | } |
| } | } |
| Line 132 static void _appendChild(Request& r, con | Line 132 static void _appendChild(Request& r, con |
| r.write_no_lang(result); | r.write_no_lang(result); |
| } | } |
| } catch(const XalanDOMException& e) { | } catch(const XalanDOMException& e) { |
| Exception::convert(pool, &method_name, e); | Exception::provide_source(pool, &method_name, e); |
| } | } |
| } | } |
| Line 201 static void _setAttribute(Request& r, co | Line 201 static void _setAttribute(Request& r, co |
| *pool.transcode(name), | *pool.transcode(name), |
| *pool.transcode(attribute_value)); | *pool.transcode(attribute_value)); |
| } catch(const XalanDOMException& e) { | } catch(const XalanDOMException& e) { |
| Exception::convert(pool, &method_name, e); | Exception::provide_source(pool, &method_name, e); |
| } | } |
| } | } |
| Line 214 static void _removeAttribute(Request& r, | Line 214 static void _removeAttribute(Request& r, |
| try { | try { |
| element.removeAttribute(*pool.transcode(name)); | element.removeAttribute(*pool.transcode(name)); |
| } catch(const XalanDOMException& e) { | } catch(const XalanDOMException& e) { |
| Exception::convert(pool, &method_name, e); | Exception::provide_source(pool, &method_name, e); |
| } | } |
| } | } |
| Line 244 static void _setAttributeNode(Request& r | Line 244 static void _setAttributeNode(Request& r |
| r.write_no_lang(result); | r.write_no_lang(result); |
| } | } |
| } catch(const XalanDOMException& e) { | } catch(const XalanDOMException& e) { |
| Exception::convert(pool, &method_name, e); | Exception::provide_source(pool, &method_name, e); |
| } | } |
| } | } |
| Line 257 static void _removeAttributeNode(Request | Line 257 static void _removeAttributeNode(Request |
| try { | try { |
| /*XalanAttr *returnAttr*/element.removeAttributeNode(&oldAttr); | /*XalanAttr *returnAttr*/element.removeAttributeNode(&oldAttr); |
| } catch(const XalanDOMException& e) { | } catch(const XalanDOMException& e) { |
| Exception::convert(pool, &method_name, e); | Exception::provide_source(pool, &method_name, e); |
| } | } |
| } | } |
| Line 279 static void _getElementsByTagName(Reques | Line 279 static void _getElementsByTagName(Reques |
| skey << buf; | skey << buf; |
| } | } |
| result.hash().put(skey, new(pool) VXnode(pool, nodes->item(i), false)); | result.hash(0).put(skey, new(pool) VXnode(pool, nodes->item(i), false)); |
| } | } |
| } | } |
| Line 302 static void _select(Request& r, const St | Line 302 static void _select(Request& r, const St |
| // expression | // expression |
| const String& expression=params->as_string(0, "expression must be string"); | const String& expression=params->as_string(0, "expression must be string"); |
| const char *expression_cstr=expression.cstr(String::UL_AS_IS); | const char *expression_cstr=expression.cstr(); |
| XalanDOMString dstring(expression_cstr); | XalanDOMString dstring(expression_cstr); |
| const XalanDOMChar *expression_dcstr=dstring.c_str(); | const XalanDOMChar *expression_dcstr=dstring.c_str(); |
| Line 324 static void _select(Request& r, const St | Line 324 static void _select(Request& r, const St |
| skey << buf; | skey << buf; |
| } | } |
| result.hash().put(skey, new(pool) VXnode(pool, list.item(i), false)); | result.hash(0).put(skey, new(pool) VXnode(pool, list.item(i), false)); |
| } | } |
| result.set_name(method_name); | result.set_name(method_name); |
| r.write_no_lang(result); | r.write_no_lang(result); |
| } catch(const XSLException& e) { | } catch(const XSLException& e) { |
| Exception::convert(pool, &expression, e); | Exception::provide_source(pool, &expression, e); |
| } | } |
| } | } |
| Line 340 static void _selectSingle(Request& r, co | Line 340 static void _selectSingle(Request& r, co |
| // expression | // expression |
| const String& expression=params->as_string(0, "expression must be string"); | const String& expression=params->as_string(0, "expression must be string"); |
| const char *expression_cstr=expression.cstr(String::UL_AS_IS); | const char *expression_cstr=expression.cstr(); |
| XalanDOMString dstring(expression_cstr); | XalanDOMString dstring(expression_cstr); |
| const XalanDOMChar *expression_dcstr=dstring.c_str(); | const XalanDOMChar *expression_dcstr=dstring.c_str(); |
| Line 360 static void _selectSingle(Request& r, co | Line 360 static void _selectSingle(Request& r, co |
| r.write_no_lang(result); | r.write_no_lang(result); |
| } | } |
| } catch(const XSLException& e) { | } catch(const XSLException& e) { |
| Exception::convert(pool, &expression, e); | Exception::provide_source(pool, &expression, e); |
| } | } |
| } | } |