$Id$
Abstract
This is the abstract.
It has several paras. This one.
And here is another one.
This is an test for the extensions provided by the docbook-xsl-saxon extensions.
Example 1. callouts.extension
sub do_nothing_useful { my($a, $b, $c); $a = new A;$a->does_nothing_either(); $b = new B;
$c = "frog"; return ($a, $c);
}
|
These are calls to the constructor |
|
This function returns a two-element list. |
|
The destructor ( |
Example 3. linenumbering.extension
The following XML code
<programlisting linenumbering="numbered">sub do_nothing_useful { my($a, $b, $c); $a = new A; $a->does_nothing_either(); $b = new B; $c = "frog"; return ($a, $c); } </programlisting>
leads to the following result:
1 sub do_nothing_useful { my($a, $b, $c); $a = new A; $a->does_nothing_either(); 5 $b = new B; $c = "frog"; return ($a, $c); }
Example 4. textinsert.extension
The following simply imports
#ifndef _My_Parser_h_ #define _My_Parser_h_ #include "MyFetch.h" class My_Parser { public: // // Construction/Destruction // My_Parser(); virtual ~My_Parser() = 0; virtual int parse(MyFetch &fetcher) = 0; }; #endif
Example 5. linenumbering.extension
and textinsert.extension
1 >#ifndef _My_Parser_h_ 2 >#define _My_Parser_h_ >#include "MyFetch.h" 4 >class My_Parser >{ 6 >public: > // 8 > // Construction/Destruction > // 10 > My_Parser(); > virtual ~My_Parser() = 0; 12 > virtual int parse(MyFetch &fetcher) = 0; >}; 14 >#endif >
Example 6. callouts.extension
, linenumbering.extension
and textinsert.extension
1 #ifndef _My_Parser_h_2 #define _My_Parser_h_ 3 #include "MyFetch.h"
4 class My_Parser
5 { 6 public: 7 // 8 // Construction/Destruction 9 // 10 My_Parser(); 11 virtual ~My_Parser() = 0; 12 virtual int parse(MyFetch &fetcher) = 0; 13 }; 14 #endif 15
I'd like to thank all the tests that came before me.