summaryrefslogtreecommitdiff
path: root/doc/tutorial/libxslttutorial.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tutorial/libxslttutorial.xml')
-rw-r--r--doc/tutorial/libxslttutorial.xml35
1 files changed, 35 insertions, 0 deletions
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 <application>xsltproc</application> designed to
illustrate the functionality of <application>libxslt</application>.
</para>
+ <para>The full code for <application>xsltproc</application> is in
+ <filename>xsltproc.c</filename> in the <application>libxslt</application>
+ distribution. It also is available <ulink
+ url="http://cvs.gnome.org/lxr/source/libxslt/libxslt/xsltproc.c">on the
+ web</ulink>.
+ </para>
<para>References:
<itemizedlist>
@@ -190,6 +196,35 @@ xsltSaveResultToFile(stdout, res, cur);
</para>
</sect2>
+ <sect2 id="cleanup">
+ <title>Cleanup</title>
+ <para>After you are finished, <application>libxslt</application> and
+ <application>libxml</application> provide functions for deallocating
+ memory.
+ </para>
+
+ <para>
+
+ <programlisting>
+ xsltFreeStylesheet(cur);<co id="cleanupstylesheet" />
+ xmlFreeDoc(res);<co id="cleanupresults" />
+ xmlFreeDoc(doc);<co id="cleanupdoc" />
+ </programlisting>
+
+ <calloutlist>
+ <callout arearefs="cleanupstylesheet">
+ <para>Free the memory used by your stylesheet.</para>
+ </callout>
+ <callout arearefs="cleanupresults">
+ <para>Free the memory used by the results document.</para>
+ </callout>
+ <callout arearefs="cleanupdoc">
+ <para>Free the memory used by your original document.</para>
+ </callout>
+ </calloutlist>
+ </para>
+ </sect2>
+
</sect1>
<appendix id="thecode">