|
|
| version 1.37, 2001/10/26 15:55:20 | version 1.42, 2001/11/05 10:42:59 |
|---|---|
| Line 77 static void _createElement(Request& r, c | Line 77 static void _createElement(Request& r, c |
| Pool& pool=r.pool(); | Pool& pool=r.pool(); |
| VXdoc& vdoc=*static_cast<VXdoc *>(r.self); | VXdoc& vdoc=*static_cast<VXdoc *>(r.self); |
| Temp_lang temp_lang(r, String::UL_XML); | const String& tagName=params->as_string(0, "tagName must be string"); |
| Value& tagName_code=params->as_junction(0, "tagName must be string"); | |
| const String& tagName=r.process(tagName_code).as_string(); | |
| try { | try { |
| XalanNode *node= | XalanNode *node= |
| Line 111 static void _createTextNode(Request& r, | Line 109 static void _createTextNode(Request& r, |
| Pool& pool=r.pool(); | Pool& pool=r.pool(); |
| VXdoc& vdoc=*static_cast<VXdoc *>(r.self); | VXdoc& vdoc=*static_cast<VXdoc *>(r.self); |
| Temp_lang temp_lang(r, String::UL_XML); | const String& data=params->as_string(0, "data must be string"); |
| Value& data_code=params->as_junction(0, "data must be string"); | |
| const String& data=r.process(data_code).as_string(); | |
| XalanNode *node= | XalanNode *node= |
| vdoc.get_document(pool, &method_name). | vdoc.get_document(pool, &method_name). |
| Line 515 static void _file(Request& r, const Stri | Line 511 static void _file(Request& r, const Stri |
| Value *vcontent_type; | Value *vcontent_type; |
| if(charset) { | if(charset) { |
| VHash *vhcontent_type=new(pool) VHash(pool); | VHash *vhcontent_type=new(pool) VHash(pool); |
| vhcontent_type->hash().put(*value_name, new(pool) VString(*scontent_type)); | vhcontent_type->hash(&method_name).put(*value_name, new(pool) VString(*scontent_type)); |
| String *scharset=new(pool) String(pool, charset); | String *scharset=new(pool) String(pool, charset); |
| vhcontent_type->hash().put(*new(pool) String(pool, "charset"), new(pool) VString(*scharset)); | vhcontent_type->hash(&method_name).put(*new(pool) String(pool, "charset"), new(pool) VString(*scharset)); |
| vcontent_type=vhcontent_type; | vcontent_type=vhcontent_type; |
| } else | } else |
| vcontent_type=new(pool) VString(*scontent_type); | vcontent_type=new(pool) VString(*scontent_type); |
| Line 615 static void _load(Request& r, const Stri | Line 611 static void _load(Request& r, const Stri |
| vdoc.set_parsed_source(*parsedSource); | vdoc.set_parsed_source(*parsedSource); |
| } | } |
| /// @test lang=String::UL_UNSPECIFIED? | |
| static void add_xslt_param(const Hash::Key& aattribute, Hash::Val *ameaning, | static void add_xslt_param(const Hash::Key& aattribute, Hash::Val *ameaning, |
| void *info) { | void *info) { |
| XalanTransformer2& transformer=*static_cast<XalanTransformer2 *>(info); | XalanTransformer2& transformer=*static_cast<XalanTransformer2 *>(info); |
| const char *attribute_cstr=aattribute.cstr(); | const char *attribute_cstr=aattribute.cstr(String::UL_UNSPECIFIED); |
| const char *meaning_cstr=static_cast<Value *>(ameaning)->as_string().cstr(); | const char *meaning_cstr=static_cast<Value *>(ameaning)->as_string().cstr(String::UL_UNSPECIFIED); |
| transformer.setStylesheetParam( | transformer.setStylesheetParam( |
| XalanDOMString(attribute_cstr), | XalanDOMString(attribute_cstr), |
| Line 692 static void _transform(Request& r, const | Line 689 static void _transform(Request& r, const |
| Exception::provide_source(pool, &stylesheet_file_name, e); | Exception::provide_source(pool, &stylesheet_file_name, e); |
| } | } |
| // close | |
| connection.close(); | |
| // write out result | // write out result |
| VXdoc& result=*new(pool) VXdoc(pool, target, false/*owns not*/); | VXdoc& result=*new(pool) VXdoc(pool, target, false/*owns not*/); |
| r.write_no_lang(result); | r.write_no_lang(result); |