Diff for /parser3/src/classes/xdoc.C between versions 1.97 and 1.98

version 1.97, 2002/08/01 11:41:13 version 1.98, 2002/08/15 09:07:49
Line 727  static void _transform(Request& r, const Line 727  static void _transform(Request& r, const
   
         VXdoc *result;          VXdoc *result;
         Value& vmaybe_xdoc=params->get(0);          Value& vmaybe_xdoc=params->get(0);
         if(strcmp(vmaybe_xdoc.type(), VXDOC_TYPE)==0) { // stylesheet (xdoc)          if(Value *vxdoc=vmaybe_xdoc.as(VXDOC_TYPE, false)) { // stylesheet (xdoc)
                 xmlDoc *document=gdome_xml_doc_get_xmlDoc(                  xmlDoc *document=gdome_xml_doc_get_xmlDoc(
                         static_cast<VXdoc *>(&vmaybe_xdoc)->get_document(&method_name));                          static_cast<VXdoc *>(vxdoc)->get_document(&method_name));
                 // compile xdoc stylesheet                  // compile xdoc stylesheet
                 xsltStylesheet_auto_ptr stylesheet_ptr(xsltParseStylesheetDoc(document));                   xsltStylesheet_auto_ptr stylesheet_ptr(xsltParseStylesheetDoc(document)); 
                 // strange thing - xsltParseStylesheetDoc records document and destroys it in stylesheet destructor                  // strange thing - xsltParseStylesheetDoc records document and destroys it in stylesheet destructor
Line 820  MXdoc::MXdoc(Pool& apool) : MXnode(apool Line 820  MXdoc::MXdoc(Pool& apool) : MXnode(apool
         // ^xdoc.file[options hash] file with "<doc/>"          // ^xdoc.file[options hash] file with "<doc/>"
         add_native_method("file", Method::CT_DYNAMIC, _file, 0, 1);          add_native_method("file", Method::CT_DYNAMIC, _file, 0, 1);
   
         // ^xdoc.transform[stylesheet file_name]          // ^xdoc.transform[stylesheet file_name/xdoc]
         // ^xdoc.transform[stylesheet file_name;params hash]          // ^xdoc.transform[stylesheet file_name/xdoc;params hash]
         add_native_method("transform", Method::CT_DYNAMIC, _transform, 1, 2);          add_native_method("transform", Method::CT_DYNAMIC, _transform, 1, 2);
   
 }  }

Removed from v.1.97  
changed lines
  Added in v.1.98


E-mail: