diff --git a/ChangeLog b/ChangeLog index e9f4a8b1..acbfe28f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Aug 29 21:23:54 MDT 2001 John Fleck + + * doc/tutorial/libxslttutorial.xml, libxslttutorial.html - update + tutorial text to add references to global variables cleanups + Wed Aug 29 21:05:43 MDT 2001 John Fleck * doc/xsltproc.1 - added xsltproc man page (note: this has not diff --git a/doc/tutorial/libxslttutorial.html b/doc/tutorial/libxslttutorial.html index 1e8bf7bb..56647a5c 100644 --- a/doc/tutorial/libxslttutorial.html +++ b/doc/tutorial/libxslttutorial.html @@ -8,10 +8,10 @@

-libxslt Tutorial

+libxslt Tutorial

John Fleck

- This is version 0.3 of the libxslt Tutorial + This is version 0.4 of the libxslt Tutorial

Permission is granted to copy, distribute and/or modify this @@ -51,7 +51,7 @@

-Abstract +Abstract

A tutorial on building a simple application using the libxslt library to perform @@ -81,7 +81,7 @@

-Note

+Note

While libxslt was written under the auspices of the GNOME project, it does not @@ -108,14 +108,14 @@

References:

@@ -147,11 +147,11 @@ functions:
  1. -parse the input file

  2. +parse the input file

  3. -parse the stylesheet

  4. +parse the stylesheet

  5. -apply the stylesheet

  6. +apply the stylesheet

@@ -234,7 +234,7 @@ xsltSaveResultToFile(stdout, res, cur);

-Note

+Note

libxml also contains output functions, such as xmlSaveFile, which can be used here. However, output-related information contained in the @@ -264,7 +264,7 @@ xsltSaveResultToFile(stdout, res, cur);

-Note

+Note

If a parameter being passed is a string rather than an XSLT node, it must be escaped. For the tutorial @@ -288,25 +288,39 @@ xsltSaveResultToFile(stdout, res, cur); xsltFreeStylesheet(cur);1 xmlFreeDoc(res);2 xmlFreeDoc(doc);3 + xsltCleanupGlobals();4 + xmlCleanupParser();5 +

- +
+1 +2 +3 + + + + + + + +
-1

Free the memory used by your stylesheet.

-2

Free the memory used by the results document.

-3

Free the memory used by your original document.

+4

Free memory used by libxslt global + variables

+5

Free memory used by the XML parser

@@ -409,8 +423,8 @@ main(int argc, char **argv) { xmlFreeDoc(res); xmlFreeDoc(doc); - xsltCleanupGlobals(); - xmlCleanupParser(); + xsltCleanupGlobals(); + xmlCleanupParser(); return(0); } diff --git a/doc/tutorial/libxslttutorial.xml b/doc/tutorial/libxslttutorial.xml index e996ca33..9ef3a4d4 100644 --- a/doc/tutorial/libxslttutorial.xml +++ b/doc/tutorial/libxslttutorial.xml @@ -26,7 +26,7 @@ Fleck - This is version 0.3 of the libxslt Tutorial + This is version 0.4 of the libxslt Tutorial @@ -250,6 +250,9 @@ xsltSaveResultToFile(stdout, res, cur); xsltFreeStylesheet(cur); xmlFreeDoc(res); xmlFreeDoc(doc); + xsltCleanupGlobals(); + xmlCleanupParser(); + @@ -262,6 +265,13 @@ xsltSaveResultToFile(stdout, res, cur); Free the memory used by your original document. + + Free memory used by libxslt global + variables + + + Free memory used by the XML parser +