|
|
| version 1.11, 2001/10/18 13:09:37 | version 1.12, 2001/10/19 14:15:23 |
|---|---|
| Line 32 XalanNode& as_node(Pool& pool, const Str | Line 32 XalanNode& as_node(Pool& pool, const Str |
| int index, const char *msg) { | int index, const char *msg) { |
| Value& value=params->as_no_junction(index, msg); | Value& value=params->as_no_junction(index, msg); |
| if(strcmp(value.type(), VXNODE_TYPE)!=0) | if(strcmp(value.type(), VXNODE_TYPE)!=0) |
| PTHROW(0, 0, | throw Exception(0, 0, |
| &method_name, | &method_name, |
| msg); | msg); |
| Line 47 XalanAttr& as_attr(Pool& pool, const Str | Line 47 XalanAttr& as_attr(Pool& pool, const Str |
| XalanNode& node=as_node(pool, method_name, params, index, msg); | XalanNode& node=as_node(pool, method_name, params, index, msg); |
| if(node.getNodeType()!=XalanNode::ATTRIBUTE_NODE) | if(node.getNodeType()!=XalanNode::ATTRIBUTE_NODE) |
| PTHROW(0, 0, | throw Exception(0, 0, |
| &method_name, | &method_name, |
| msg); | msg); |
| 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) { |
| pool.exception()._throw(pool, &method_name, e); | Exception::convert(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) { |
| pool.exception()._throw(pool, &method_name, e); | Exception::convert(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) { |
| pool.exception()._throw(pool, &method_name, e); | Exception::convert(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) { |
| pool.exception()._throw(pool, &method_name, e); | Exception::convert(pool, &method_name, e); |
| } | } |
| } | } |
| Line 171 XalanElement& get_self_element(Request& | Line 171 XalanElement& get_self_element(Request& |
| XalanNode& node=vnode.get_node(pool, &method_name); | XalanNode& node=vnode.get_node(pool, &method_name); |
| if(node.getNodeType()!=XalanNode::ELEMENT_NODE) | if(node.getNodeType()!=XalanNode::ELEMENT_NODE) |
| PTHROW(0, 0, | throw Exception(0, 0, |
| &method_name, | &method_name, |
| "method can be called on node of ELEMENT type"); | "method can be called on node of ELEMENT type"); |
| 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) { |
| pool.exception()._throw(pool, &method_name, e); | Exception::convert(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) { |
| pool.exception()._throw(pool, &method_name, e); | Exception::convert(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) { |
| pool.exception()._throw(pool, &method_name, e); | Exception::convert(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) { |
| pool.exception()._throw(pool, &method_name, e); | Exception::convert(pool, &method_name, e); |
| } | } |
| } | } |
| Line 329 static void _select(Request& r, const St | Line 329 static void _select(Request& r, const St |
| 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) { |
| pool.exception()._throw(pool, &expression, e); | Exception::convert(pool, &expression, e); |
| } | } |
| } | } |
| 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) { |
| pool.exception()._throw(pool, &expression, e); | Exception::convert(pool, &expression, e); |
| } | } |
| } | } |