[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><programlisting>#include &lt;iostream&gt; <co id="ex.plco.include-co" linkends="ex.plco.include" /> int main(int argc, char** argv) { cout &lt;&lt; "Hello there!"; <co id="ex.plco.cout-co" linkends="ex.plco.cout" /> }</programlisting></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><<</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]