[xslt] Problem - Nothing happens
- From: Cornelia Unterzaucher <conny_unterzaucher gmx at>
- To: xslt gnome org
- Subject: [xslt] Problem - Nothing happens
- Date: Tue, 20 Mar 2007 16:19:02 +0100
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]