OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Getting programlistingco to work


Hi all -

I'm having difficulty getting callouts to appear in my program listing in 
HTML.  I'm using what I think is a straightforward example of 
programlistingco with the DocBook XSL for HTML output.  I've tried both 
docbook-xsl-1.69.1 and docbook-xsl-snapshot, with the same results.

I'm using Ant 1.6.4's default XSLT processor, which I believe is the 
version of Xalan included with Java SDK 1.4.2, Xalan-J 2.4.1+ ("Xalan 
version 2.4.1 with controlled bug fixes", according to the Java SDK 
release notes).

My programlistingco:

       <programlistingco>
 	<areaspec>
 	  <area id="ex.plco.include" coords="1" />
 	  <area id="ex.plco.cout" coords="4" />
 	</areaspec>
 	<programlisting>#include &lt;iostream&gt;

int main(int argc, char** argv) {
     std::cout &lt;&lt; "Hello there!";
}</programlisting>
         <calloutlist>
 	  <callout arearefs="ex.plco.include">
 	    <para>
 	      This program includes the <literal>iostream</literal>
 	      library, so we can perform terminal output.
 	    </para>
 	  </callout>
 	  <callout arearefs="ex.plco.cout">
 	    <para>
 	      <literal>std::cout</literal> is a global instance of the
 	      output stream that goes to "standard out" for the
 	      program, usually the terminal.  Output streams overload
 	      the <literal>&lt;&lt;</literal> operator to take data to
 	      be put on the stream.  In this example, the string
 	      "Hello there!" is printed to the terminal.
 	    </para>
 	  </callout>
 	</calloutlist>
       </programlistingco>

I also tried:

 	  <area id="ex.plco.include" coords="1 22" />
 	  <area id="ex.plco.cout" coords="4 35" />

with no change.

The resulting HTML has no <img> tags inside the <pre>.  I do get correct 
output for the calloutlist.  The HTML output:

<div class="programlistingco"><pre class="programlisting">#include 
&lt;iostream&gt;

int main(int argc, char** argv) {
     std::cout &lt;&lt; "Hello there!";
}</pre><div class="calloutlist"><table summary="Callout list" 
border="0"><tr><td align="left" valign="top" width="5%"><img border="0" 
alt="1" src="images/callouts/1.png"></td><td align="left" valign="top"><p>
 	      This program includes the <code 
class="literal">iostream</code>
 	      library, so we can perform terminal output.
 	    </p></td></tr><tr><td align="left" valign="top" 
width="5%"><img border="0" alt="2" src="images/callouts/2.png"></td><td 
align="left" valign="top"><p>

 	      <code class="literal">std::cout</code> is a global instance 
of the
 	      output stream that goes to "standard out" for the
 	      program, usually the terminal.  Output streams overload
 	      the <code class="literal">&lt;&lt;</code> operator to take 
data to
 	      be put on the stream.  In this example, the string
 	      "Hello there!" is printed to the terminal.
 	    </p></td></tr></table></div></div>

Thanks for any assistance you can provide!

-- Dan



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]