[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Using ProgramListingCO
You need to include the appropriate extensions jar file in your CLASSPATH. See this reference for an example of using programlistingco: http://www.sagehill.net/docbookxsl/AnnotateListing.html You can also use <co> elements with <programlisting> to insert callout points if your program text is included in your document. Those are easier to use, IMHO, because you place the callout bugs with the text instead of by line number. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Jacques" <jacques@foucry.net> To: <docbook-apps@lists.oasis-open.org> Sent: Wednesday, May 12, 2004 4:11 AM Subject: [docbook-apps] Using ProgramListingCO Hi list, I would like to use ProgramListingCO, but i doesn't work properly. Or may be I doesn't interstood exactly what ProgranListingCO have to do. I try with the exemple in the "DocBook" book and I have the same result (it's the french version of the book). <programlistingco> <areaspec> <areaset coords="" id="ex.plco.const"> <area coords="4" id="ex.plco.c1">test</area> <area coords="8" id="explco.c2">test2</area> </areaset> <area coords="12" id="ex.plco.ret"/> <area coords="12" id="ex.plco.dest"/> </areaspec> <programlisting> sub ne_fait_rien_d_utile { my($a, $b, $c); $a = new A; $a->ne_fait_rien_non_plus(); $b = new B; $c = "frog"; return ($a, $c); } </programlisting> <calloutlist> <callout arearefs="ex.plco.const"> <para>Voici les appels au constructeur <function>new</function> dans les classes objects</para> </callout> <callout arearefs="ex.plco.ret"><para>Cette fonction renvoie une liste de deux élements</para></callout> <callout arearefs="ex.plco.dest"><para>Le <emphasis>destructeur</emphasis> (<function>DESTROY</function>) de l'object <literal>$b</literal> sera automatiquement appelé pour cet objet puisqu'il ne peut y avoir aucune référence vers ce dernier hors de cette fonction.</para></callout> </calloutlist> </programlistingco> I saw that I have to set use.extensions and use.callouts to 1, but when I try to have html output there is some errors, the first one is : SystemID: file:/Users/Shared/DocBook/lib/docbook/docbook-xsl-1.65.1/html/callout. xsl Location: 43:1 Description: W No insertCallouts function is available. I think there is something missing but what ! Thanks in advance for you help. Jacques -- La notion de passoire est indépendante de la notion de trou... et réciproquement To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]