[xslt] Problem - Nothing happens



Hi,

I have problems using libxslt. My program is very simple, but it doesn't work. the result file is the same as the input file.

   params[nbparams] = NULL;

    xmlSubstituteEntitiesDefault(1);
   xmlLoadExtDtdDefaultValue = 1;

xsltStylesheetPtr styleSheet = xsltParseStylesheetFile((const xmlChar *) styleSheetName);

   xmlDocPtr doc= xmlParseFile(docName);

   xmlDocPtr result= xsltApplyStylesheet(styleSheet, doc, params);


   xsltSaveResultToFilename("myResult.xml", result, styleSheet, 0);


   //cleanup - free the memory
   xsltFreeStylesheet(styleSheet);
   xmlFreeDoc(gBSDTrans);
   xmlFreeDoc(gBSDIn);

   xsltCleanupGlobals();
   xmlCleanupParser();

Any ideas?
Thanks,
Conny




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]