From 7cec9740f14a1c3a71adada52aef72742a622273 Mon Sep 17 00:00:00 2001 From: MDT 2001 John Fleck Date: Sat, 16 Jun 2001 15:46:24 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 ++++ doc/images/callouts/1.png | Bin 0 -> 329 bytes doc/images/callouts/10.png | Bin 0 -> 361 bytes doc/images/callouts/2.png | Bin 0 -> 353 bytes doc/images/callouts/3.png | Bin 0 -> 350 bytes doc/images/callouts/4.png | Bin 0 -> 345 bytes doc/images/callouts/5.png | Bin 0 -> 348 bytes doc/images/callouts/6.png | Bin 0 -> 355 bytes doc/images/callouts/7.png | Bin 0 -> 344 bytes doc/images/callouts/8.png | Bin 0 -> 357 bytes doc/images/callouts/9.png | Bin 0 -> 357 bytes doc/tutorial/libxslttutorial.html | 56 ++++++++++++++++++++++++++++++++++---- doc/tutorial/libxslttutorial.xml | 35 ++++++++++++++++++++++++ 13 files changed, 90 insertions(+), 6 deletions(-) create mode 100644 doc/images/callouts/1.png create mode 100644 doc/images/callouts/10.png create mode 100644 doc/images/callouts/2.png create mode 100644 doc/images/callouts/3.png create mode 100644 doc/images/callouts/4.png create mode 100644 doc/images/callouts/5.png create mode 100644 doc/images/callouts/6.png create mode 100644 doc/images/callouts/7.png create mode 100644 doc/images/callouts/8.png create mode 100644 doc/images/callouts/9.png diff --git a/ChangeLog b/ChangeLog index 9290941..7fadb44 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 0000000000000000000000000000000000000000..7d473430b7bec514f7de12f5769fe7c5859e8c5d GIT binary patch literal 329 zcmeAS@N?(olHy`uVBq!ia0vp^JRr;gBp8b2n5}^nQC}X^4DKU-G|w_t}fLBA)Suv#nrW z!^h2QnY_`l!BOq-UXEX{m2up>JTQkX)2m zTvF+fTUlI^nXH#utd~++ke^qgmzgTe~DWM4ffP81J literal 0 HcmV?d00001 diff --git a/doc/images/callouts/10.png b/doc/images/callouts/10.png new file mode 100644 index 0000000000000000000000000000000000000000..997bbc8246a316e040e0804174ba260e219d7d33 GIT binary patch literal 361 zcmeAS@N?(olHy`uVBq!ia0vp^JRr;gBp8b2n5}^nQWtZ~+OvdJMW|Y+^UT?O-M{rKJsmzxdayJ{ zDCQA!%%@7Jj$q%-wf8e0_jRx8Dqi$}^?K=?6FriQFLv>>oc^CE+aVHhW3=nZ+fQ4!M=ZC7H>3sl|FJr3LwU zC3?yExf6FO?f@F61vV}-Juk7O6lk8Yg;}bFaZ-|HQc7Azopr01?u8M*si- literal 0 HcmV?d00001 diff --git a/doc/images/callouts/2.png b/doc/images/callouts/2.png new file mode 100644 index 0000000000000000000000000000000000000000..5d09341b2f6d2ea2d1d5dad5d980f14b4b05dfd2 GIT binary patch literal 353 zcmeAS@N?(olHy`uVBq!ia0vp^JRr;gBp8b2n5}^nQxaY7e*=hH)_rZeB4|imU1$R#1`!P>&$poQl;nzm}mD5ZFopaX|GsS%q*{P~< z;WtmO%lhToBL0i}yfkaOt?EN=nkLNGuU`ywhI5H)L`iUdT1k0gQ7VIjhO(w-Zen_> zZ(@38a<+nro{^q~f~BRtfrY+-p+a&|W^qZSLvCepNoKNMYO!8QX+eHoiC%Jk?!;Y+ zJAlS%fsM;d&r2*R1)67JkeZlkYGj#gX_9E3W@4U_nw*@Ln38B@k(iuhnUeN2eF0kK0(Y1u|9Rc(19XFPiEBhjaDG}zd16s2gM)^$re|(qda7?? zdS-IAf{C7yo`r&?rM`iMzJZ}aa#3b+Nu@(>WpPPnvR-PjUP@^}eqM=Qa(?c_U5Yz^ z#%Y0#%S_KpEGY$=XJL?(l#*ybuErX#^g`ttQfwn3r>K)tuC)r#2`iJ>Prt42#Ndx#Uc~1)>aw z3jE@Q4|!9Z%lVv}- zc=48cF7H)t`(Ck`^+mtha~Np7bBSw2NpOBzNqJ&XDuaWDvZiNlVtT4?VtQtBwt|VC zk)DNurKP@sg}#BILUK`NaY>~^Ze?*vX0l#tv0h4PL4IC|UUGi!#9fLzfW~Qojmu2W zODrh`nrE42VU(7fm~5G9U~HM3l#*m_WNcxOXkuzEX4g z+-vfUhb0A>b04=Im{6XiQd1v%r%>h0$G8U7E1If8OQ!N~xOYY5h0NDT$p9(iZ?Q&e z18-(+l~J8O`)kc}e&uL$eW&>P-#`~Qm$*ih1m~xflqVLYGB{``YkKA;rl!p+yCFkc(+@-h!Xq*<< zxXkpt#FA2=d1VEBsYynrsitN|Y01eJ$;p;U#>wWX2KP5v&I9V=1L+C? fTFYQ)RAFeOZJ=$?lDoSWD8u0C>gTe~DWM4f^}upZ literal 0 HcmV?d00001 diff --git a/doc/images/callouts/6.png b/doc/images/callouts/6.png new file mode 100644 index 0000000000000000000000000000000000000000..0ba694af6c07d947d219b45a629bd32c60a0f5fe GIT binary patch literal 355 zcmeAS@N?(olHy`uVBq!ia0vp^JRr;gBp8b2n5}^nQ*)Bra@SU# zmiz#bR~{$s2si{S(aY|Z}Vd7tb ouUmn-_&~Y>fYve?8dVq?X&Y!8wB+ut1u%w%U~xZhnMEEs6JbBSw2NpOBzNqJ&XDuaWDvZiNlVtT4?VtQtBwt|VC zk)DNurKP@sg}#BILUK`NaY>~^Ze?*vX0l#tv0h4PL4IC|UUGi!#9fLzfW~Qojmu2W zODrh`nrCEbVQgk$XkwI@Y+{_8nv`N>YGIaQkz#0QY@Te9lBQ<)awbq0A4pdK&{_sV bqY6VKZ3AtCmfYR7Kp6&4S3j3^P6u&S`V$cAh@R~F=4@V4jxkzlaQrcFYWK{)(`o5XZnut z=nE4SU2g1ZW%;@@I$>_e3F8a=8WK~|CVXt1DqisQxtIX|`YW_n&?Nh#1gQ}d)$LrYTw(_{nVG)tp2V+#}WG*e^KRLdkoLz7g? qn(IA84Qgo42`r6v<+Hvch>@C7(8A5T-G@yGywn*$#_oy literal 0 HcmV?d00001 diff --git a/doc/images/callouts/9.png b/doc/images/callouts/9.png new file mode 100644 index 0000000000000000000000000000000000000000..a0676d26cc2ff1de12c4ecdeefb44a0d71bc6bde GIT binary patch literal 357 zcmeAS@N?(olHy`uVBq!ia0vp^JRr;gBp8b2n5}^nQNRqa;^5&H%t0&v*|C|wdb9$wI zR@+N9#RIowg@Uqn&z-__Tzhhz!sG|vTxA7?=O|Y?u(d4T{!RM9c7chr6d%1?R=i16 z?@Ic{f32YJFJnVhX)qGzOMplv!L->5yAlT#}irms+fsQd*FoSE84k zpF44v;trs3T43Wc)AJHbN`dAXo0u6Hr<$gkq?lM38ycjV7+5A5Sr{ayr5c%-n;95g pF*H#D>f!_G3IJNmU}#ifXryhRZP1dtyA~+J;OXk;vd$@?2>@J{cB%jX literal 0 HcmV?d00001 diff --git a/doc/tutorial/libxslttutorial.html b/doc/tutorial/libxslttutorial.html index b7610ff..ba5c243 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:
  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

@@ -227,6 +234,43 @@ xsltSaveResultToFile(stdout, res, cur);

+
+ +

+ +Cleanup +

+

After you are finished, libxslt and + libxml provide functions for deallocating + memory. +

+

+ +

+	  xsltFreeStylesheet(cur);1
+	  xmlFreeDoc(res);2
+	  xmlFreeDoc(doc);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.

+

+

diff --git a/doc/tutorial/libxslttutorial.xml b/doc/tutorial/libxslttutorial.xml index 6b09da3..3bb89da 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. + + + + + -- 2.7.4