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: Re: [docbook-apps] Getting programlistingco to work



Ah, found the answer moments later.  I overlooked the example in the XSL 
book, which works:

       <programlisting>&lt;programlisting&gt;#include 
&amp;lt;iostream&amp;gt; <co id="ex.plco.include-co" 
linkends="ex.plco.include" />

int main(int argc, char** argv) {
     cout &amp;lt;&amp;lt; "Hello there!"; <co id="ex.plco.cout-co" 
linkends="ex.plco.cout" />
}&lt;/programlisting&gt;</programlisting>

       <calloutlist>
 	<callout arearefs="ex.plco.include-co" id="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-co" id="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>

Sorry for the premature post.

Thanks!
-- Dan


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