diff --git a/ChangeLog b/ChangeLog
index 9290941f..7fadb445 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Jun 16 09:27:27 MDT 2001 John Fleck
+
+ * updating tutorial: adding discussion of freeing memory, image
+ files for callouts, link to xsltproc.c code
+
Sat Jun 16 15:23:43 CEST 2001 Daniel Veillard
* libxslt/variables.c: bug #56267 was still not fixed, forgot
diff --git a/doc/images/callouts/1.png b/doc/images/callouts/1.png
new file mode 100644
index 00000000..7d473430
Binary files /dev/null and b/doc/images/callouts/1.png differ
diff --git a/doc/images/callouts/10.png b/doc/images/callouts/10.png
new file mode 100644
index 00000000..997bbc82
Binary files /dev/null and b/doc/images/callouts/10.png differ
diff --git a/doc/images/callouts/2.png b/doc/images/callouts/2.png
new file mode 100644
index 00000000..5d09341b
Binary files /dev/null and b/doc/images/callouts/2.png differ
diff --git a/doc/images/callouts/3.png b/doc/images/callouts/3.png
new file mode 100644
index 00000000..ef7b7004
Binary files /dev/null and b/doc/images/callouts/3.png differ
diff --git a/doc/images/callouts/4.png b/doc/images/callouts/4.png
new file mode 100644
index 00000000..adb8364e
Binary files /dev/null and b/doc/images/callouts/4.png differ
diff --git a/doc/images/callouts/5.png b/doc/images/callouts/5.png
new file mode 100644
index 00000000..4d7eb460
Binary files /dev/null and b/doc/images/callouts/5.png differ
diff --git a/doc/images/callouts/6.png b/doc/images/callouts/6.png
new file mode 100644
index 00000000..0ba694af
Binary files /dev/null and b/doc/images/callouts/6.png differ
diff --git a/doc/images/callouts/7.png b/doc/images/callouts/7.png
new file mode 100644
index 00000000..472e96f8
Binary files /dev/null and b/doc/images/callouts/7.png differ
diff --git a/doc/images/callouts/8.png b/doc/images/callouts/8.png
new file mode 100644
index 00000000..5e60973c
Binary files /dev/null and b/doc/images/callouts/8.png differ
diff --git a/doc/images/callouts/9.png b/doc/images/callouts/9.png
new file mode 100644
index 00000000..a0676d26
Binary files /dev/null and b/doc/images/callouts/9.png differ
diff --git a/doc/tutorial/libxslttutorial.html b/doc/tutorial/libxslttutorial.html
index b7610ff9..ba5c2430 100644
--- a/doc/tutorial/libxslttutorial.html
+++ b/doc/tutorial/libxslttutorial.html
@@ -41,6 +41,8 @@
Saving the result
+ Cleanup
+
@@ -98,19 +100,24 @@
stripped-down version of xsltproc designed to
illustrate the functionality of libxslt.
+The full code for xsltproc is in
+ xsltproc.c in the libxslt
+ distribution. It also is available on the
+ web.
+
References:
@@ -127,11 +134,11 @@
functions:
-parse the input file
+parse the input file
-parse the stylesheet
+parse the stylesheet
-apply the stylesheet
+apply the stylesheet
@@ -227,6 +234,43 @@ xsltSaveResultToFile(stdout, res, cur);
+
+
+
+
After you are finished, libxslt and
+ libxml provide functions for deallocating
+ memory.
+
+
+
+
+ xsltFreeStylesheet(cur);
+ xmlFreeDoc(res);
+ xmlFreeDoc(doc);
+
+
+
+
+
+ |
+Free the memory used by your stylesheet. |
+
+
+
+ |
+Free the memory used by the results document. |
+
+
+
+ |
+Free the memory used by your original document. |
+
+
+
+
diff --git a/doc/tutorial/libxslttutorial.xml b/doc/tutorial/libxslttutorial.xml
index 6b09da3c..3bb89da8 100644
--- a/doc/tutorial/libxslttutorial.xml
+++ b/doc/tutorial/libxslttutorial.xml
@@ -78,6 +78,12 @@
stripped-down version of xsltproc designed to
illustrate the functionality of libxslt.
+ The full code for xsltproc is in
+ xsltproc.c in the libxslt
+ distribution. It also is available on the
+ web.
+
References:
@@ -190,6 +196,35 @@ xsltSaveResultToFile(stdout, res, cur);
+
+ Cleanup
+ After you are finished, libxslt and
+ libxml provide functions for deallocating
+ memory.
+
+
+
+
+
+ xsltFreeStylesheet(cur);
+ xmlFreeDoc(res);
+ xmlFreeDoc(doc);
+
+
+
+
+ Free the memory used by your stylesheet.
+
+
+ Free the memory used by the results document.
+
+
+ Free the memory used by your original document.
+
+
+
+
+