From 7cec9740f14a1c3a71adada52aef72742a622273 Mon Sep 17 00:00:00 2001
From: MDT 2001 John Fleck
Date: Sat, 16 Jun 2001 15:46:24 +0000
Subject: adding discussion of freeing memory, image files for callouts, link
to
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
---
doc/tutorial/libxslttutorial.html | 56 ++++++++++++++++++++++++++++++++++-----
doc/tutorial/libxslttutorial.xml | 35 ++++++++++++++++++++++++
2 files changed, 85 insertions(+), 6 deletions(-)
(limited to 'doc/tutorial')
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.
+
+
+
+
+
--
cgit v1.2.3