programlistingco doesn't add the callouts on programlisting
Posted: Sun Mar 25, 2007 12:45 pm
Dear member,
I have copy and pasted on my document the sample for programlistingco from:
Docbook 5.0: Definitive Guide:
Using Docbook HTML v8.0 transformation scenario I get on generated output the itmeized list with the callouts number in front, but I don't get the reference on the specified lines on programlisting source code. I don't see any of such images.
Is it a bug or it is a configuration problem?
Thanks,
David
I have copy and pasted on my document the sample for programlistingco from:
Docbook 5.0: Definitive Guide:
Code: Select all
<programlistingco>
<areaspec>
<areaset xml:id="ex.plco.const">
<area coords="4" xml:id="ex.plco.c1"/>
<area coords="8" xml:id="ex.plco.c2"/>
</areaset>
<area coords="12" xml:id="ex.plco.ret"/>
<area coords="12" xml:id="ex.plco.dest"/>
</areaspec>
<programlisting>
sub do_nothing_useful {
my($a, $b, $c);
$a = new A;
$a->does_nothing_either();
$b = new B;
$c = "frog";
return ($a, $c);
}
</programlisting>
<calloutlist>
<callout arearefs="ex.plco.const">
<para>These are calls to the constructor <function>new</function> in the
object classes. </para>
</callout>
<callout arearefs="ex.plco.ret">
<para>This function returns a two-element list. </para>
</callout>
<callout arearefs="ex.plco.dest">
<para>The <emphasis>destructor</emphasis> (<function>DESTROY</function>) for
the object <literal>$b</literal> will be called automatically for this
object since there can be no other references to it outside this
function. </para>
</callout>
</calloutlist>
</programlistingco>
Is it a bug or it is a configuration problem?
Thanks,
David