|
|
| version 1.149, 2005/12/16 10:15:12 | version 1.151, 2007/02/28 19:09:23 |
|---|---|
| Line 399 static void _create(Request& r, MethodPa | Line 399 static void _create(Request& r, MethodPa |
| // must be last action in if, see after if} | // must be last action in if, see after if} |
| } else { // [localName] | } else { // [localName] |
| xmlChar* localName=r.transcode(param.as_string()); | if (VFile* vfile=param.as_vfile(String::L_UNSPECIFIED)){ |
| xmldoc=xmlParseMemory(vfile->value_ptr(), vfile->value_size()); | |
| if(!xmldoc || xmlHaveGenericErrors()) | |
| throw XmlException(0); | |
| } else { | |
| xmlChar* localName=r.transcode(param.as_string()); | |
| #if 0 | #if 0 |
| GdomeDocumentType *documentType=gdome_di_createDocumentType ( | GdomeDocumentType *documentType=gdome_di_createDocumentType ( |
| docimpl, | docimpl, |
| Line 414 static void _create(Request& r, MethodPa | Line 418 static void _create(Request& r, MethodPa |
| exc); | exc); |
| /// +xalan createXMLDecl ? | /// +xalan createXMLDecl ? |
| #endif | #endif |
| xmldoc=xmlNewDoc(0); | xmldoc=xmlNewDoc(0); |
| if(!xmldoc || xmlHaveGenericErrors()) | if(!xmldoc || xmlHaveGenericErrors()) |
| throw XmlException(0); | throw XmlException(0); |
| xmlNode* node=xmlNewChild((xmlNode*)xmldoc, NULL, localName, NULL); | xmlNode* node=xmlNewChild((xmlNode*)xmldoc, NULL, localName, NULL); |
| if(!node || xmlHaveGenericErrors()) | if(!node || xmlHaveGenericErrors()) |
| throw XmlException(0); | throw XmlException(0); |
| set_encoding=true; | set_encoding=true; |
| // must be last action in if, see after if} | // must be last action in if, see after if} |
| } | |
| } | } |
| // must be first action after if} | // must be first action after if} |
| // replace any previous parsed source | // replace any previous parsed source |
| Line 766 static void _transform(Request& r, Metho | Line 771 static void _transform(Request& r, Metho |
| &transform_strings, | &transform_strings, |
| transform_params | transform_params |
| }; | }; |
| hash->for_each(add_xslt_param, &info); | hash->for_each<Add_xslt_param_info*>(add_xslt_param, &info); |
| transform_params[hash->count()*2]=0; | transform_params[hash->count()*2]=0; |
| } else | } else |
| throw Exception("parser.runtime", | throw Exception("parser.runtime", |