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


_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
[email protected]
http://mail.gnome.org/mailman/listinfo/xslt

Reply via email to