1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-11-08 11:02:18 +03:00

I generate a root node, I assume it's significant progress !

* libxslt/transform.[ch] Makefile.am: started adding the
  transformation module
* pattern.[ch] xslt.c: more work...
Daniel
This commit is contained in:
Daniel Veillard
2001-01-11 20:13:26 +00:00
parent 9264e233eb
commit 2d430b16ee
8 changed files with 353 additions and 5 deletions

View File

@@ -123,6 +123,11 @@ void
xsltFreeTemplate(xsltTemplatePtr template) {
if (template == NULL)
return;
if (template->match) xmlFree(template->match);
if (template->name) xmlFree(template->name);
if (template->nameURI) xmlFree(template->nameURI);
if (template->mode) xmlFree(template->mode);
if (template->modeURI) xmlFree(template->modeURI);
memset(template, -1, sizeof(xsltTemplate));
xmlFree(template);
}
@@ -178,6 +183,8 @@ void
xsltFreeStylesheet(xsltStylesheetPtr sheet) {
if (sheet == NULL)
return;
xsltFreeTemplateHashes(sheet);
xsltFreeTemplateList(sheet->templates);
if (sheet->doc != NULL)
xmlFreeDoc(sheet->doc);